DefinitelyTyped/scriptjs/scriptjs.d.ts
2016-08-07 17:02:42 -07:00

18 lines
608 B
TypeScript

// Type definitions for scriptjs
// Project: https://github.com/ded/script.js
// Definitions by: Steve Lam <http://ssttevee.com>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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;
urlArgs(str:string): void;
ready(deps:string | string[], ready:() => void, req?:(missing:string[]) => void): $script;
}
declare var $script: $script;
export = $script;