2016-10-12 12:07:54 +00:00
|
|
|
import 'typings-global';
|
2016-10-11 23:41:30 +00:00
|
|
|
/**
|
|
|
|
* defines a LazyModule
|
|
|
|
*/
|
2016-10-14 01:07:37 +00:00
|
|
|
export declare type TLoader = 'npm' | 'systemjs';
|
2016-10-11 23:41:30 +00:00
|
|
|
export declare class LazyModule<T> {
|
|
|
|
name: string;
|
|
|
|
cwd: string;
|
2017-06-30 16:51:41 +00:00
|
|
|
whenLoaded: Promise<T>;
|
2017-07-31 13:16:10 +00:00
|
|
|
private nameIsPath;
|
2016-10-12 12:01:15 +00:00
|
|
|
private whenLoadedDeferred;
|
2016-12-10 18:46:47 +00:00
|
|
|
constructor(nameArg: string, cwdArg: string);
|
2016-10-11 23:41:30 +00:00
|
|
|
/**
|
|
|
|
* loads the module
|
|
|
|
*/
|
2017-06-30 16:51:41 +00:00
|
|
|
load(): Promise<T>;
|
2016-10-11 23:41:30 +00:00
|
|
|
}
|