mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 08:17:05 +00:00
[gulp-json-validator] Introduce typings for gulp-json-validator
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import gulpJsonValidator = require("gulp-json-validator");
|
||||
|
||||
gulpJsonValidator(); // $ExpectType ReadWriteStream
|
||||
gulpJsonValidator({}); // $ExpectType ReadWriteStream
|
||||
gulpJsonValidator({ allowDuplicatedKeys: true }); // $ExpectType ReadWriteStream
|
||||
gulpJsonValidator({ allowDuplicatedKeys: false }); // $ExpectType ReadWriteStream
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
// Type definitions for gulp-json-validator 1.2
|
||||
// Project: https://github.com/jackyjieliu/gulp-json-validator
|
||||
// Definitions by: Peter Safranek <https://github.com/pe8ter>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
interface GulpJsonValidatorOptions {
|
||||
allowDuplicatedKeys?: boolean;
|
||||
}
|
||||
|
||||
declare function gulpJsonValidator(option?: GulpJsonValidatorOptions): NodeJS.ReadWriteStream;
|
||||
|
||||
export = gulpJsonValidator;
|
||||
@@ -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-json-validator-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"file-name-casing": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user