mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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".
17 lines
614 B
TypeScript
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;
|