mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-15 04:07:04 +00:00
WIP WIP WIP WIP WIP WIP: Remove trailing newlines WIP WIP WIP WIP WIP WIP WIP WIP: All tests pass WIP WIP WIP
19 lines
659 B
TypeScript
19 lines
659 B
TypeScript
// Type definitions for scriptjs
|
|
// Project: https://github.com/ded/script.js
|
|
// Definitions by: Steve Lam <https://github.com/ssttevee>
|
|
// 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 module 'scriptjs' {
|
|
var $script: $script;
|
|
export = $script;
|
|
}
|