We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff34710 commit 0c11a71Copy full SHA for 0c11a71
src/date.ts
@@ -1,10 +1,12 @@
1
import type { Tagged } from 'type-fest';
2
-import type { Maybe, Optional } from './types.js';
+import type { Maybe, Nullable, Optional } from './types.js';
3
4
export type ValidDate = Tagged<Date, 'valid'>;
5
6
export function getDateString(date: ValidDate): string;
7
-export function getDateString(date: Date): Optional<string>;
+export function getDateString(
8
+ date?: Maybe<Date | string | number>,
9
+): Optional<string>;
10
export function getDateString(
11
date?: Maybe<Date | string | number>,
12
): Optional<string> {
0 commit comments