Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/website-new/docs/en/configure/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type ModuleFederationOptions = {
// Dynamic publicPath
getPublicPath?: string;
// Runtime plugins
runtimePlugins?: Array<string>;
runtimePlugins?: Array<string | [string, Record<string, unknown>]>;
// The runtime implementation to use
implementation?: string;
// manifest configuration
Expand Down
2 changes: 1 addition & 1 deletion apps/website-new/docs/en/configure/runtimeplugins.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# runtimePlugins

- Type: `string[] | Array<[string, object]>`
- Type: `string[] | Array<[string, Record<string, unknown>]>`
- Required: No
- Default: `undefined`

Expand Down
2 changes: 1 addition & 1 deletion apps/website-new/docs/zh/configure/runtimeplugins.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# runtimePlugins

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

Expand Down
4 changes: 2 additions & 2 deletions arch-doc/sdk-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ interface ModuleFederationPluginOptions {
/**
* Runtime plugin file paths or package name.
*/
runtimePlugins?: string[];
runtimePlugins?: Array<string | [string, Record<string, unknown>]>;
/**
* Custom public path function
*/
Expand Down Expand Up @@ -1090,4 +1090,4 @@ For implementation guidance and context, see:
- [Implementation Guide](./implementation-guide.md) - Practical SDK usage examples
- [Manifest Specification](./manifest-specification.md) - Manifest-related types and schemas
- [Error Handling Specification](./error-handling-specification.md) - Error types and handling patterns
- [Advanced Topics](./advanced-topics.md) - Production SDK usage patterns
- [Advanced Topics](./advanced-topics.md) - Production SDK usage patterns
2 changes: 1 addition & 1 deletion packages/enhanced/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Under normal circumstances, you need to open the asynchronous entry, and then lo

### runtimePlugins

- Type: `string[]`
- Type: `string[] | Array<[string, Record<string, unknown>]>`
- Required: False
- Default: `undefined`

Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/types/plugins/ContainerPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export interface ContainerPluginOptions {
/**
* Runtime plugin file paths or package name. Supports tuple [path, params].
*/
runtimePlugins?: (string | [string, Record<string, any>])[];
runtimePlugins?: (string | [string, Record<string, unknown>])[];

dataPrefetch?: DataPrefetch;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/types/plugins/ModuleFederationPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export interface ModuleFederationPluginOptions {
/**
* Runtime plugin file paths or package name. Supports tuple [path, params].
*/
runtimePlugins?: (string | [string, Record<string, any>])[];
runtimePlugins?: (string | [string, Record<string, unknown>])[];
/**
* Custom public path function
*/
Expand Down