Add gulp-batch declaration files (#14832)

This commit is contained in:
Álvaro Menezes
2017-03-10 15:02:04 -08:00
committed by Mohamed Hegazy
parent a871ef4a10
commit fd21da7d92
4 changed files with 39 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
import * as gulp from "gulp";
import * as batch from "gulp-batch";
gulp.task('default', function() {
gulp.watch([ 'lib/**', 'test/**' ], batch((events: any, cb: any) => {
events.on('data', console.log).on('end', cb);
}));
});
+8
View File
@@ -0,0 +1,8 @@
// Type definitions for gulp-batch 1.0
// Project: https://github.com/floatdrop/gulp-batch
// Definitions by: Alvaro Menezes <https://github.com/alvarollmenezes>, Vinicius Salomao <https://github.com/vizeke>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function batch(opts?: any, cb?: any, errorHandler?: any): (event: any) => void;
declare namespace batch { }
export = batch;
+22
View File
@@ -0,0 +1,22 @@
{
"files": [
"index.d.ts",
"gulp-batch-tests.ts"
],
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
}
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "../tslint.json" }