diff --git a/types/gulp-zip/gulp-zip-tests.ts b/types/gulp-zip/gulp-zip-tests.ts new file mode 100644 index 0000000000..983a4263ce --- /dev/null +++ b/types/gulp-zip/gulp-zip-tests.ts @@ -0,0 +1,4 @@ +import * as GulpZip from 'gulp-zip'; + +GulpZip('file.zip').on('end', () => {}); +GulpZip('file.zip', {compress: false}).on('end', () => {}); diff --git a/types/gulp-zip/index.d.ts b/types/gulp-zip/index.d.ts new file mode 100644 index 0000000000..a0582863b3 --- /dev/null +++ b/types/gulp-zip/index.d.ts @@ -0,0 +1,20 @@ +// Type definitions for gulp-zip 4.0 +// Project: https://github.com/sindresorhus/gulp-zip +// Definitions by: Louis Orleans +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare namespace GulpZip { + interface GulpZipOptions { + /** + * Compress + * @default true + */ + compress?: boolean; + } +} + +declare function GulpZip(filename: string, options?: GulpZip.GulpZipOptions): NodeJS.ReadStream; + +export = GulpZip; diff --git a/types/gulp-zip/tsconfig.json b/types/gulp-zip/tsconfig.json new file mode 100644 index 0000000000..621b4764a8 --- /dev/null +++ b/types/gulp-zip/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "gulp-zip-tests.ts" + ] +} diff --git a/types/gulp-zip/tslint.json b/types/gulp-zip/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/gulp-zip/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }