zephyr-xpack-internal
Version:
Xpack internals for Zephyr
36 lines • 889 B
text/typescript
export interface Remote {
name: string;
alias?: string;
entry?: string;
type?: string;
shareScope?: string;
entryGlobalName?: string;
}
export interface Options {
name: string;
version?: string;
remotes: Remote[];
shared: {
[pkgName: string]: any;
};
plugins?: FederationRuntimePlugin[];
shareStrategy?: 'version-first' | 'loaded-first';
}
export interface BeforeRequestHookArgs {
id: string;
options: Options;
origin: any;
}
export interface FederationRuntimePlugin {
name: string;
version?: string;
beforeRequest?: (args: BeforeRequestHookArgs) => BeforeRequestHookArgs | Promise<BeforeRequestHookArgs>;
}
export interface RemoteWithEntry {
name: string;
alias?: string;
entry: string;
type?: string;
entryGlobalName?: string;
}
//# sourceMappingURL=module-federation.types.d.mts.map