DefinitelyTyped/types/loadware/index.d.ts
Alex Lyman 00121a0418 Fix linting failure.
Weird, when I run lint locally, it demands that I have the tslint.json derived from "dtslint/dtslint.json" but Travis CI apparently disagrees and wants "dtslint/dt.json".
2017-11-23 18:56:17 -08:00

17 lines
614 B
TypeScript

// Type definitions for loadware 2.0
// Project: https://github.com/franciscop/loadware
// Definitions by: A.J.J. Lyman <https://github.com/ALyman>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// tslint:disable-next-line:ban-types
type AnyFunction = Function;
declare function loadware<F extends AnyFunction>(...loadable: Array<loadware.Loadable<F>>): ReadonlyArray<F>;
declare namespace loadware {
type Loadable<F extends AnyFunction> = string | F | RecursiveLoadable<F>;
interface RecursiveLoadable<F extends AnyFunction> extends Array<F | Loadable<F>> { }
}
export = loadware;