mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 15:27:05 +00:00
Added types for compatability
This commit is contained in:
Vendored
+2
-2
@@ -2,10 +2,10 @@
|
||||
// Project: https://github.com/ljharb/is-date-object
|
||||
// Definitions by: Adam Zerella <https://github.com/adamzerella>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 3.3
|
||||
// TypeScript Version: 3.0
|
||||
|
||||
declare function isDateObject(value: Date): true;
|
||||
declare function isDateObject(value?: object): boolean;
|
||||
declare function isDateObject(value?: null | boolean | string | number | symbol | bigint | []): false;
|
||||
declare function isDateObject(value?: null | boolean | string | number | []): false;
|
||||
|
||||
export = isDateObject;
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"private": true,
|
||||
"types": "index",
|
||||
"typesVersions": {
|
||||
">=3.2.0-0": { "*": ["ts3.2/*"] }
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
declare function isDateObject(value: Date): true;
|
||||
declare function isDateObject(value: object): boolean;
|
||||
declare function isDateObject(value: undefined | null | boolean | string | number | symbol | bigint | []): false;
|
||||
|
||||
export = isDateObject;
|
||||
@@ -0,0 +1,15 @@
|
||||
import isDate = require("is-date-object");
|
||||
|
||||
isDate();
|
||||
isDate(undefined);
|
||||
isDate(null);
|
||||
isDate(false);
|
||||
isDate(true);
|
||||
isDate(42);
|
||||
isDate('foo');
|
||||
isDate((): void => {});
|
||||
isDate([]);
|
||||
isDate({});
|
||||
isDate(/a/g);
|
||||
isDate(new RegExp('a', 'g'));
|
||||
isDate(new Date());
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../../",
|
||||
"typeRoots": [
|
||||
"../../"
|
||||
],
|
||||
"types": [
|
||||
|
||||
],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"is-date-object-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Reference in New Issue
Block a user