mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-31 03:02:04 +08:00
* Add typings for jest-diff * Add typings for jest-get-type * Add typings for jest-matcher-utils * Enable noImplicitThis option for jest-diff * Enable noImplicitThis option for jest-get-type * Enable noImplicitThis option for jest-matcher-utils * Point jest-diff project URL to GitHub * Point jest-get=type project URL to GitHub * Point jest-matcher-utils project URL to GitHub * Uncomment EXPECTED_BG, RECEIVED_BG variables Although these variables have been removed on master of the jest-matcher-utils repo, there has yet to be a release. Add a TODO to indicate that a future update to these definitions will be necessary.
27 lines
594 B
TypeScript
27 lines
594 B
TypeScript
// Type definitions for jest-get-type 21.0
|
|
// Project: https://github.com/facebook/jest/tree/master/packages/jest-get-type
|
|
// 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;
|