From 0798faf596f14a52aef9dae33749b6300259c456 Mon Sep 17 00:00:00 2001 From: Vritant Bhardwaj Date: Tue, 15 Feb 2022 14:53:44 -0800 Subject: [PATCH] Add support for formatRange to Intl.DateTimeFormat (#47740) * add interface for DateTimeFormat.format * remove railing whitespace --- src/lib/esnext.intl.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/esnext.intl.d.ts b/src/lib/esnext.intl.d.ts index 99cf65b4dcb..ab7d8421b5f 100644 --- a/src/lib/esnext.intl.d.ts +++ b/src/lib/esnext.intl.d.ts @@ -1,3 +1,6 @@ declare namespace Intl { - // Empty for now + + interface DateTimeFormat { + formatRange(startName: Date, endNumber: Date): string; + } }