DefinitelyTyped/scriptjs/scriptjs.d.ts
2016-08-07 16:33:32 -07:00

13 lines
411 B
TypeScript

interface $script {
(paths:string | string[], idOrDone:string | (() => void), optDone?:() => void): $script;
get(path:string, fn:() => void): void;
order(scripts:string[], id:string, done:() => void): void;
path(p:string): void;
urlArts(str:string): void;
ready(deps:string | string[], ready:() => void, req?:(missing:string[]) => void): $script;
}
declare var $script: $script;
export = $script;