mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Updated any type to unknown
This commit is contained in:
6
types/is-date-object/index.d.ts
vendored
6
types/is-date-object/index.d.ts
vendored
@@ -4,6 +4,10 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 3.3
|
||||
|
||||
declare function isDateObject(value?: unknown): boolean;
|
||||
type InvalidTypes = undefined | null | boolean | string | number | [] | {};
|
||||
|
||||
declare function isDateObject(value: Date): true;
|
||||
declare function isDateObject(value: InvalidTypes | unknown): false;
|
||||
declare function isDateObject(value?: unknown): false;
|
||||
|
||||
export = isDateObject;
|
||||
|
||||
@@ -7,6 +7,7 @@ isDate(false);
|
||||
isDate(true);
|
||||
isDate(42);
|
||||
isDate('foo');
|
||||
isDate((): void => {});
|
||||
isDate([]);
|
||||
isDate({});
|
||||
isDate(/a/g);
|
||||
|
||||
Reference in New Issue
Block a user