refacto(F1.1) : wire [id].vue to use extracted modules and fix TS errors
Wire machine/[id].vue to import from extracted utility modules (customFieldUtils, productDisplayUtils, useMachineHierarchy, useMachinePrint). Remove ~1400 LOC of inline functions replaced by imports. Fix TypeScript errors in extracted composables (AnyRecord/ConstructeurSummary boundary casts, Map generics, optional chaining on unknown). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -88,7 +88,8 @@ export function useMachinePrint() {
|
||||
) => {
|
||||
if (typeof window === 'undefined') return
|
||||
|
||||
const context = buildMachinePrintContext({
|
||||
// machineReport.js has no type annotations; cast to avoid inferred never[] params
|
||||
const context = (buildMachinePrintContext as unknown as (config: Record<string, unknown>) => Record<string, unknown>)({
|
||||
machine,
|
||||
machineName,
|
||||
machineReference,
|
||||
|
||||
Reference in New Issue
Block a user