From 97b52bb38350dd7156170ccea71bbfb933a1e88c Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Mon, 18 Apr 2022 04:43:23 -0700 Subject: [PATCH] fix: accept number in format --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 01d8851..21ca7bd 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -25,7 +25,7 @@ export interface Locale { } export interface Formatter { - format(firstDate: Date, secondDate: Date, options?: Config): string; + format(firstDate: Date | number, secondDate: Date | number, options?: Config): string; } export function create(config?: Config): Formatter;