smartsystem/dist/index.d.ts
2017-07-31 15:16:10 +02:00

18 lines
379 B
TypeScript

import 'typings-global';
/**
* defines a LazyModule
*/
export declare type TLoader = 'npm' | 'systemjs';
export declare class LazyModule<T> {
name: string;
cwd: string;
whenLoaded: Promise<T>;
private nameIsPath;
private whenLoadedDeferred;
constructor(nameArg: string, cwdArg: string);
/**
* loads the module
*/
load(): Promise<T>;
}