forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
oclazyload.d.ts
34 lines (28 loc) · 1.03 KB
/
oclazyload.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Type definitions for oc.LazyLoad
// Project: https://github.com/ocombe/ocLazyLoad
// Definitions by: Roland Zwaga <https://github.com/rolandzwaga>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
declare module oc {
interface ILazyLoadConfig {
asyncLoader:any;
loadedModules?:string[];
modules?:ILazyLoadModuleConfig[];
}
interface ILazyLoadModuleConfig {
name:string;
files:string[];
}
interface ILazyLoad {
load(module:any):ng.IPromise<any>;
loadTemplateFile(url:string, config:ILazyLoadModuleConfig):ng.IPromise<any>;
loadTemplateFile(urls:string[], config:ILazyLoadModuleConfig):ng.IPromise<any>;
getModuleName(moduleName:string):string;
getModules():string[];
getModuleConfig(name:string):ILazyLoadModuleConfig;
setModuleConfig(config:ILazyLoadModuleConfig):void;
}
interface ILazyLoadProvider {
config(config:ILazyLoadConfig):void;
}
}