Skip to content

Commit 86f956f

Browse files
fix(chrome-devtools): correct __GLOBAL_PLUGIN__ type declaration to match runtime-core
- Import ModuleFederationRuntimePlugin type for proper typing - Use Array<ModuleFederationRuntimePlugin> instead of any[] to match existing declaration - Remove optional operator to match existing required property type This resolves TypeScript compilation errors about conflicting type declarations.
1 parent 30c2c0e commit 86f956f

File tree

1 file changed

+3
-1
lines changed
  • packages/chrome-devtools/src

1 file changed

+3
-1
lines changed

packages/chrome-devtools/src/init.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ declare global {
77
}
88
}
99

10+
import type { ModuleFederationRuntimePlugin } from '@module-federation/runtime';
11+
1012
declare module '@module-federation/runtime' {
1113
export interface Federation {
1214
originModuleInfo: GlobalModuleInfo;
13-
__GLOBAL_PLUGIN__?: any[];
15+
__GLOBAL_PLUGIN__: Array<ModuleFederationRuntimePlugin>;
1416
}
1517
}
1618

0 commit comments

Comments
 (0)