mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-05 01:30:17 +00:00
jest-get-type: Provides its own types (#39586)
This commit is contained in:
committed by
Nathan Shively-Sanders
parent
c55b373d90
commit
9f0ffedbe0
@@ -1998,6 +1998,12 @@
|
||||
"sourceRepoURL": "https://github.com/dmester/jdenticon",
|
||||
"asOfVersion": "2.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "jest-get-type",
|
||||
"typingsPackageName": "jest-get-type",
|
||||
"sourceRepoURL": "https://github.com/facebook/jest/tree/master/packages/jest-get-type",
|
||||
"asOfVersion": "24.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "jest-each",
|
||||
"typingsPackageName": "jest-each",
|
||||
|
||||
26
types/jest-get-type/index.d.ts
vendored
26
types/jest-get-type/index.d.ts
vendored
@@ -1,26 +0,0 @@
|
||||
// Type definitions for jest-get-type 21.0
|
||||
// Project: https://github.com/facebook/jest/tree/master/packages/jest-get-type, https://github.com/facebook/jest
|
||||
// Definitions by: Alex Coles <https://github.com/myabc>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
declare namespace getType {
|
||||
type ValueType =
|
||||
| 'array'
|
||||
| 'boolean'
|
||||
| 'function'
|
||||
| 'null'
|
||||
| 'number'
|
||||
| 'object'
|
||||
| 'regexp'
|
||||
| 'map'
|
||||
| 'set'
|
||||
| 'date'
|
||||
| 'string'
|
||||
| 'symbol'
|
||||
| 'undefined';
|
||||
}
|
||||
|
||||
declare function getType(value: any): getType.ValueType;
|
||||
|
||||
export = getType;
|
||||
@@ -1,17 +0,0 @@
|
||||
import getType = require('jest-get-type');
|
||||
|
||||
getType([]); // $ExpectType ValueType
|
||||
getType(false);
|
||||
getType(null);
|
||||
getType(1000);
|
||||
getType(/d+/);
|
||||
getType(new Map());
|
||||
getType(new Set());
|
||||
getType(new Date());
|
||||
getType('ts');
|
||||
getType(Symbol());
|
||||
getType(undefined);
|
||||
|
||||
getType(); // $ExpectError
|
||||
getType([], undefined); // $ExpectError
|
||||
getType([], ''); // $ExpectError
|
||||
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"jest-get-type-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Reference in New Issue
Block a user