11 lines
302 B
TypeScript
11 lines
302 B
TypeScript
export class LazyModule<TModule> {
|
|
constructor(private importCallback: () => Promise<TModule>) {}
|
|
}
|
|
|
|
export class LazyAction<
|
|
TAction extends (...args: any[]) => any,
|
|
TModule
|
|
> {
|
|
constructor(_lazyModule: LazyModule<TModule>, _getter: (module: TModule) => TAction) {
|
|
}
|
|
}
|