1.0.4 • Published 2 years ago

@types/task-graph-runner v1.0.4

Weekly downloads
28
License
MIT
Repository
github
Last release
2 years ago

Installation

npm install --save @types/task-graph-runner

Summary

This package contains type definitions for task-graph-runner (https://github.com/thejameskyle/task-graph-runner#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/task-graph-runner.

index.d.ts

// Type definitions for task-graph-runner 1.0
// Project: https://github.com/thejameskyle/task-graph-runner#readme
// Definitions by: Melvin Groenhoff <https://github.com/mgroenhoff>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1

export = taskGraphRunner;

declare function taskGraphRunner<Item, Result>(opts: taskGraphRunner.Opts<Item, Result>): Promise<taskGraphRunner.Results<Item, Result>>;

declare namespace taskGraphRunner {
    interface Opts<Item, Result> {
        graph: Map<Item, Item[]>;
        task: (item: Item) => Result;
        force?: boolean | undefined;
    }

    interface Results<Item, Result> {
        values: Map<Item, Result>;
        safe: boolean;
    }
}

Additional Details

  • Last updated: Fri, 02 Jul 2021 21:32:13 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Melvin Groenhoff.

1.0.2

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

4 years ago

1.0.0

7 years ago