mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-31 03:02:04 +08:00
Merge pull request #19885 from dudeofawesome/gulp-zip
Add typings for gulp-zip
This commit is contained in:
4
types/gulp-zip/gulp-zip-tests.ts
Normal file
4
types/gulp-zip/gulp-zip-tests.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import * as GulpZip from 'gulp-zip';
|
||||
|
||||
GulpZip('file.zip').on('end', () => {});
|
||||
GulpZip('file.zip', {compress: false}).on('end', () => {});
|
||||
20
types/gulp-zip/index.d.ts
vendored
Normal file
20
types/gulp-zip/index.d.ts
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
// Type definitions for gulp-zip 4.0
|
||||
// Project: https://github.com/sindresorhus/gulp-zip
|
||||
// Definitions by: Louis Orleans <https://github.com/dudeofawesome>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
declare namespace GulpZip {
|
||||
interface GulpZipOptions {
|
||||
/**
|
||||
* Compress
|
||||
* @default true
|
||||
*/
|
||||
compress?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
declare function GulpZip(filename: string, options?: GulpZip.GulpZipOptions): NodeJS.ReadStream;
|
||||
|
||||
export = GulpZip;
|
||||
22
types/gulp-zip/tsconfig.json
Normal file
22
types/gulp-zip/tsconfig.json
Normal file
@@ -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"
|
||||
]
|
||||
}
|
||||
1
types/gulp-zip/tslint.json
Normal file
1
types/gulp-zip/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user