[@types/gulp-jsonmin] Add type definitions

This commit is contained in:
Romain Faust
2018-08-17 15:36:49 +02:00
parent bd2eb9c92f
commit e6e7ed3a9e
4 changed files with 47 additions and 0 deletions

View 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
View 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;

View 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"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }