mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-08 19:20:05 +00:00
Update index.d.ts
This commit is contained in:
3
types/is-date-object/index.d.ts
vendored
3
types/is-date-object/index.d.ts
vendored
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user