mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
23 lines
613 B
TypeScript
23 lines
613 B
TypeScript
// Type definitions for sequencify 0.1
|
|
// Project: https://github.com/robrich/sequencify
|
|
// Definitions by: Nicolas Penin <https://github.com/npenin>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
// Definition file started by dts-gen
|
|
// TypeScript Version: 2.1
|
|
|
|
export = sequencify;
|
|
|
|
declare namespace sequencify {
|
|
interface Task {
|
|
name: string;
|
|
dep: string[];
|
|
}
|
|
|
|
interface TaskMap {
|
|
[name: string]: Task;
|
|
}
|
|
}
|
|
|
|
declare function sequencify<T extends sequencify.TaskMap>(tasks: T, names: Array<keyof T>, results: Array<keyof T>, nest?: string[]): void;
|