|
| 1 | +import type { |
| 2 | + PackageType as PackageType_0, |
| 3 | + RemoteKeys as RemoteKeys_0, |
| 4 | +} from './rslib-module/apis.d.ts'; |
| 5 | +declare module '@module-federation/runtime' { |
| 6 | + type RemoteKeys = RemoteKeys_0; |
| 7 | + type PackageType<T, Y = any> = T extends RemoteKeys_0 ? PackageType_0<T> : Y; |
| 8 | + export function loadRemote<T extends RemoteKeys, Y>( |
| 9 | + packageName: T, |
| 10 | + ): Promise<PackageType<T, Y>>; |
| 11 | + export function loadRemote<T extends string, Y>( |
| 12 | + packageName: T, |
| 13 | + ): Promise<PackageType<T, Y>>; |
| 14 | +} |
| 15 | +declare module '@module-federation/enhanced/runtime' { |
| 16 | + type RemoteKeys = RemoteKeys_0; |
| 17 | + type PackageType<T, Y = any> = T extends RemoteKeys_0 ? PackageType_0<T> : Y; |
| 18 | + export function loadRemote<T extends RemoteKeys, Y>( |
| 19 | + packageName: T, |
| 20 | + ): Promise<PackageType<T, Y>>; |
| 21 | + export function loadRemote<T extends string, Y>( |
| 22 | + packageName: T, |
| 23 | + ): Promise<PackageType<T, Y>>; |
| 24 | +} |
| 25 | +declare module '@module-federation/runtime-tools' { |
| 26 | + type RemoteKeys = RemoteKeys_0; |
| 27 | + type PackageType<T, Y = any> = T extends RemoteKeys_0 ? PackageType_0<T> : Y; |
| 28 | + export function loadRemote<T extends RemoteKeys, Y>( |
| 29 | + packageName: T, |
| 30 | + ): Promise<PackageType<T, Y>>; |
| 31 | + export function loadRemote<T extends string, Y>( |
| 32 | + packageName: T, |
| 33 | + ): Promise<PackageType<T, Y>>; |
| 34 | +} |
0 commit comments