Skip to content

Commit 4438fed

Browse files
authored
chore: update runtimePlugins type (#4123)
1 parent 5dffeec commit 4438fed

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

apps/website-new/docs/en/configure/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type ModuleFederationOptions = {
1717
// Dynamic publicPath
1818
getPublicPath?: string;
1919
// Runtime plugins
20-
runtimePlugins?: Array<string>;
20+
runtimePlugins?: Array<string | [string, Record<string, unknown>]>;
2121
// The runtime implementation to use
2222
implementation?: string;
2323
// manifest configuration

apps/website-new/docs/en/configure/runtimeplugins.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# runtimePlugins
22

3-
- Type: `string[] | Array<[string, object]>`
3+
- Type: `string[] | Array<[string, Record<string, unknown>]>`
44
- Required: No
55
- Default: `undefined`
66

apps/website-new/docs/zh/configure/runtimeplugins.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# runtimePlugins
22

3-
- 类型:`string[] | Array<[string, object]>`
3+
- 类型:`string[] | Array<[string, Record<string, unknown>]>`
44
- 是否必填:否
55
- 默认值:`undefined`
66

arch-doc/sdk-reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ interface ModuleFederationPluginOptions {
6565
/**
6666
* Runtime plugin file paths or package name.
6767
*/
68-
runtimePlugins?: string[];
68+
runtimePlugins?: Array<string | [string, Record<string, unknown>]>;
6969
/**
7070
* Custom public path function
7171
*/
@@ -1090,4 +1090,4 @@ For implementation guidance and context, see:
10901090
- [Implementation Guide](./implementation-guide.md) - Practical SDK usage examples
10911091
- [Manifest Specification](./manifest-specification.md) - Manifest-related types and schemas
10921092
- [Error Handling Specification](./error-handling-specification.md) - Error types and handling patterns
1093-
- [Advanced Topics](./advanced-topics.md) - Production SDK usage patterns
1093+
- [Advanced Topics](./advanced-topics.md) - Production SDK usage patterns

packages/enhanced/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Under normal circumstances, you need to open the asynchronous entry, and then lo
156156

157157
### runtimePlugins
158158

159-
- Type: `string[]`
159+
- Type: `string[] | Array<[string, Record<string, unknown>]>`
160160
- Required: False
161161
- Default: `undefined`
162162

packages/sdk/src/types/plugins/ContainerPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export interface ContainerPluginOptions {
9797
/**
9898
* Runtime plugin file paths or package name. Supports tuple [path, params].
9999
*/
100-
runtimePlugins?: (string | [string, Record<string, any>])[];
100+
runtimePlugins?: (string | [string, Record<string, unknown>])[];
101101

102102
dataPrefetch?: DataPrefetch;
103103
}

packages/sdk/src/types/plugins/ModuleFederationPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export interface ModuleFederationPluginOptions {
238238
/**
239239
* Runtime plugin file paths or package name. Supports tuple [path, params].
240240
*/
241-
runtimePlugins?: (string | [string, Record<string, any>])[];
241+
runtimePlugins?: (string | [string, Record<string, unknown>])[];
242242
/**
243243
* Custom public path function
244244
*/

0 commit comments

Comments
 (0)