mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
[js-types] Add types
This commit is contained in:
8
types/js-types/index.d.ts
vendored
Normal file
8
types/js-types/index.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
// Type definitions for js-types 2.0
|
||||
// Project: https://github.com/sindresorhus/js-types#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = jsTypes;
|
||||
|
||||
declare const jsTypes: string[];
|
||||
5
types/js-types/js-types-tests.ts
Normal file
5
types/js-types/js-types-tests.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import jsTypes = require('js-types');
|
||||
import jsTypesJson = require('js-types/js-types.json');
|
||||
|
||||
jsTypes; // $ExpectType string[]
|
||||
jsTypesJson; // $ExpectType string[]
|
||||
3
types/js-types/js-types.json.d.ts
vendored
Normal file
3
types/js-types/js-types.json.d.ts
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export = jsTypes;
|
||||
|
||||
declare const jsTypes: string[];
|
||||
24
types/js-types/tsconfig.json
Normal file
24
types/js-types/tsconfig.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"js-types.json.d.ts",
|
||||
"js-types-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/js-types/tslint.json
Normal file
1
types/js-types/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user