mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Typings for schema-utils (#36656)
This commit is contained in:
parent
ae6aa49a5f
commit
967abf43b6
12
types/schema-utils/index.d.ts
vendored
Normal file
12
types/schema-utils/index.d.ts
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
// Type definitions for schema-utils 1.0
|
||||
// Project: https://github.com/webpack-contrib/schema-utils
|
||||
// Definitions by: Dmitry Guketlev <https://github.com/yavanosta>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
declare function validate(
|
||||
schema: object | string | boolean,
|
||||
options: any,
|
||||
name: string): true;
|
||||
|
||||
export = validate;
|
||||
4
types/schema-utils/schema-utils-tests.ts
Normal file
4
types/schema-utils/schema-utils-tests.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import validate = require('schema-utils');
|
||||
|
||||
validate('path/to/file.json', {loader: 'options'}, 'Demo loader');
|
||||
validate({type: 'object'}, {loader: 'options'}, 'Demo loader');
|
||||
23
types/schema-utils/tsconfig.json
Normal file
23
types/schema-utils/tsconfig.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"schema-utils-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/schema-utils/tslint.json
Normal file
1
types/schema-utils/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user