mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
added gulp-intercept types (#34213)
This commit is contained in:
committed by
Ron Buckton
parent
de6f095f67
commit
3404397bdc
@@ -0,0 +1,14 @@
|
||||
import gulpIntercept = require('gulp-intercept');
|
||||
import gulp = require('gulp');
|
||||
import Vinyl = require('vinyl');
|
||||
|
||||
gulp.task('testTask', () => {
|
||||
return gulp.src(['src/*.html'])
|
||||
|
||||
.pipe(gulpIntercept((sourceFile: Vinyl) => {
|
||||
console.log(sourceFile.path);
|
||||
return sourceFile;
|
||||
}))
|
||||
|
||||
.pipe(gulp.dest('dist/'));
|
||||
});
|
||||
Vendored
+22
@@ -0,0 +1,22 @@
|
||||
// Type definitions for gulp-intercept 0.1
|
||||
// Project: https://github.com/khilnani/gulp-intercept
|
||||
// Definitions by: Takesi Tokugawa <https://github.com/TokugawaTakesi>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
import Vinyl = require('vinyl');
|
||||
|
||||
declare namespace intercept {
|
||||
interface Intercept {
|
||||
(interceptFunction: InterceptFunction): NodeJS.ReadWriteStream;
|
||||
}
|
||||
|
||||
interface InterceptFunction {
|
||||
(file: Vinyl): Vinyl;
|
||||
}
|
||||
}
|
||||
|
||||
declare var intercept: intercept.Intercept;
|
||||
|
||||
export = intercept;
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"gulp-intercept-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Reference in New Issue
Block a user