DefinitelyTyped/types/gulp-tap/index.d.ts
TokugawaT_YD 0cbf2d2865 Types for gulp-tap (#31917)
* Types for "gulp-tap" added

* Types for "gulp-tap" added

* Requested changes applied

* Requested changes applied
2019-03-25 09:31:33 -07:00

23 lines
578 B
TypeScript

// Type definitions for gulp-tap 1.0
// Project: https://github.com/geejs/gulp-tap
// Definitions by: Takesi Tokugawa <https://github.com/TokugawaTakesi>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import Vinyl = require('vinyl');
declare namespace tap {
interface Tap {
(tapFunction: TapFunction, t?: any): NodeJS.ReadWriteStream;
}
interface TapFunction {
(file: Vinyl): any;
}
}
declare function tap(tapFunction: (file: Vinyl, t?: {}) => void): NodeJS.ReadWriteStream;
export = tap;