From 572d0deda07c0520e30cf1c19cde559d6bf4f96a Mon Sep 17 00:00:00 2001 From: hoop71 Date: Fri, 2 Oct 2020 10:03:43 -0600 Subject: [PATCH 1/4] chore: add dateStyle to DateTimeFormatOptions --- src/lib/es5.d.ts | 1 + tests/lib/lib.d.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/lib/es5.d.ts b/src/lib/es5.d.ts index 0c04a27b1c36f..a38ff6456bb61 100644 --- a/src/lib/es5.d.ts +++ b/src/lib/es5.d.ts @@ -4330,6 +4330,7 @@ declare namespace Intl { formatMatcher?: string; hour12?: boolean; timeZone?: string; + dateStyle?: string; } interface ResolvedDateTimeFormatOptions { diff --git a/tests/lib/lib.d.ts b/tests/lib/lib.d.ts index a60f138647178..b3ac0b6248ab6 100644 --- a/tests/lib/lib.d.ts +++ b/tests/lib/lib.d.ts @@ -3951,6 +3951,7 @@ declare module Intl { formatMatcher?: string; hour12?: boolean; timeZone?: string; + dateStyle?: string; } interface ResolvedDateTimeFormatOptions { @@ -3968,6 +3969,7 @@ declare module Intl { minute?: string; second?: string; timeZoneName?: string; + dateStyle?: string; } interface DateTimeFormat { From 6b4b0ce9a723e58207ff8efa6db837c7b6ca8b9b Mon Sep 17 00:00:00 2001 From: hoop71 Date: Mon, 12 Oct 2020 09:37:30 -0600 Subject: [PATCH 2/4] chore: remove old types --- src/lib/es5.d.ts | 1 - tests/lib/lib.d.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/src/lib/es5.d.ts b/src/lib/es5.d.ts index a38ff6456bb61..0c04a27b1c36f 100644 --- a/src/lib/es5.d.ts +++ b/src/lib/es5.d.ts @@ -4330,7 +4330,6 @@ declare namespace Intl { formatMatcher?: string; hour12?: boolean; timeZone?: string; - dateStyle?: string; } interface ResolvedDateTimeFormatOptions { diff --git a/tests/lib/lib.d.ts b/tests/lib/lib.d.ts index b3ac0b6248ab6..92b7bb73ed53f 100644 --- a/tests/lib/lib.d.ts +++ b/tests/lib/lib.d.ts @@ -3951,7 +3951,6 @@ declare module Intl { formatMatcher?: string; hour12?: boolean; timeZone?: string; - dateStyle?: string; } interface ResolvedDateTimeFormatOptions { From 313c8fb5b2f683a1e65db302dfe3b0537bb5e03f Mon Sep 17 00:00:00 2001 From: hoop71 Date: Mon, 12 Oct 2020 09:37:56 -0600 Subject: [PATCH 3/4] chore: update 2020 library --- lib/lib.es2020.intl.d.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lib/lib.es2020.intl.d.ts b/lib/lib.es2020.intl.d.ts index 4b1093db2a3a0..4d373c38adaf0 100644 --- a/lib/lib.es2020.intl.d.ts +++ b/lib/lib.es2020.intl.d.ts @@ -293,4 +293,21 @@ declare namespace Intl { unit?: string; unitDisplay?: string; } + + interface DateTimeFormatOptions { + localeMatcher?: string; + weekday?: string; + era?: string; + year?: string; + month?: string; + day?: string; + hour?: string; + minute?: string; + second?: string; + timeZoneName?: string; + formatMatcher?: string; + hour12?: boolean; + timeZone?: string; + dateStyle?: string; + } } From 110fb021d1fbb4707bf3479b973901434acdbd97 Mon Sep 17 00:00:00 2001 From: hoop71 Date: Mon, 19 Oct 2020 10:57:13 -0400 Subject: [PATCH 4/4] chore: move to src --- lib/lib.es2020.intl.d.ts | 17 ----------------- src/lib/es2020.intl.d.ts | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/lib/lib.es2020.intl.d.ts b/lib/lib.es2020.intl.d.ts index 4d373c38adaf0..4b1093db2a3a0 100644 --- a/lib/lib.es2020.intl.d.ts +++ b/lib/lib.es2020.intl.d.ts @@ -293,21 +293,4 @@ declare namespace Intl { unit?: string; unitDisplay?: string; } - - interface DateTimeFormatOptions { - localeMatcher?: string; - weekday?: string; - era?: string; - year?: string; - month?: string; - day?: string; - hour?: string; - minute?: string; - second?: string; - timeZoneName?: string; - formatMatcher?: string; - hour12?: boolean; - timeZone?: string; - dateStyle?: string; - } } diff --git a/src/lib/es2020.intl.d.ts b/src/lib/es2020.intl.d.ts index 225e060f60b68..caca1a399ee17 100644 --- a/src/lib/es2020.intl.d.ts +++ b/src/lib/es2020.intl.d.ts @@ -277,4 +277,21 @@ declare namespace Intl { unit?: string; unitDisplay?: string; } + + interface DateTimeFormatOptions { + localeMatcher?: string; + weekday?: string; + era?: string; + year?: string; + month?: string; + day?: string; + hour?: string; + minute?: string; + second?: string; + timeZoneName?: string; + formatMatcher?: string; + hour12?: boolean; + timeZone?: string; + dateStyle?: string; + } }