mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
* Fix first round of weak type errors Done through griddle-react * 95% done with weak type fixes * Fix last couple of weak type errors * Remove some lint from mithril tests * mithril's Lifecycle is not a weak type any more Restore the Lifecycle constraints in the rest of the definitions. * Fix react-redux tests after #16652 broke them * Remove package-lock.json
32 lines
893 B
TypeScript
32 lines
893 B
TypeScript
// Type definitions for vinyl-paths
|
|
// Project: https://github.com/sindresorhus/vinyl-paths
|
|
// Definitions by: Qubo <https://github.com/tkQubo>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="node" />
|
|
|
|
|
|
|
|
declare namespace paths {
|
|
interface Paths extends NodeJS.ReadWriteStream {
|
|
paths: string[];
|
|
}
|
|
|
|
interface PathsStatic {
|
|
/**
|
|
* Use the file paths from a gulp pipeline in vanilla node module
|
|
* @param callback The optionally supplied callback will get a file path for every file and is expected
|
|
* to call the callback when done. An array of the file paths so far is available as a paths property
|
|
* on the stream.
|
|
*/
|
|
(callback?: Callback): Paths;
|
|
}
|
|
|
|
interface Callback {
|
|
(path: string): any;
|
|
}
|
|
}
|
|
|
|
declare var paths: paths.PathsStatic;
|
|
export = paths;
|