Installation
npm install --save @types/scriptjs
Summary
This package contains type definitions for scriptjs (https://github.com/ded/script.js).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/scriptjs.
index.d.ts
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;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Steve Lam.