mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-04 06:19:24 +08:00
[@types/gulp-jsonmin] Add type definitions
This commit is contained in:
5
types/gulp-jsonmin/gulp-jsonmin-tests.ts
Normal file
5
types/gulp-jsonmin/gulp-jsonmin-tests.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import * as GulpJsonmin from 'gulp-jsonmin';
|
||||
|
||||
GulpJsonmin();
|
||||
GulpJsonmin({});
|
||||
GulpJsonmin({ verbose: true });
|
||||
18
types/gulp-jsonmin/index.d.ts
vendored
Normal file
18
types/gulp-jsonmin/index.d.ts
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
// Type definitions for gulp-jsonmin 1.1
|
||||
// Project: https://github.com/englercj/gulp-jsonmin
|
||||
// Definitions by: Romain Faust <https://github.com/romain-faust>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
import { Transform } from 'stream';
|
||||
|
||||
declare function jsonmin(options?: jsonmin.Options): Transform;
|
||||
|
||||
declare namespace jsonmin {
|
||||
interface Options {
|
||||
verbose?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
export = jsonmin;
|
||||
23
types/gulp-jsonmin/tsconfig.json
Normal file
23
types/gulp-jsonmin/tsconfig.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"gulp-jsonmin-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/gulp-jsonmin/tslint.json
Normal file
1
types/gulp-jsonmin/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user