Update index.d.ts

This commit is contained in:
Adam Zerella
2019-03-07 13:58:48 +11:00
committed by GitHub
parent 2bbab68802
commit b11d95d433

View File

@@ -4,10 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.3
type InvalidTypes = undefined | null | boolean | string | number | [] | {};
declare function isDateObject(value: Date): true;
declare function isDateObject(value: InvalidTypes | unknown): boolean;
declare function isDateObject(value?: object): boolean;
declare function isDateObject(value?: null | undefined | boolean | string | number | symbol | bigint | Array | Function): false;