add unknown to DateTimeFormatTypes (#50402)

* add unknown to DateTimeFormatTypes

* move unknown to es2019.intl instead

* Accepted baselines.

Co-authored-by: long.ho <long.ho@cloudkitchens.com>
This commit is contained in:
Long Ho
2022-08-26 13:02:44 -07:00
committed by GitHub
parent 8f895997d2
commit 71d1911503
18 changed files with 51 additions and 39 deletions

View File

@@ -67,6 +67,7 @@ namespace ts {
["es2019.object", "lib.es2019.object.d.ts"],
["es2019.string", "lib.es2019.string.d.ts"],
["es2019.symbol", "lib.es2019.symbol.d.ts"],
["es2019.intl", "lib.es2019.intl.d.ts"],
["es2020.bigint", "lib.es2020.bigint.d.ts"],
["es2020.date", "lib.es2020.date.d.ts"],
["es2020.promise", "lib.es2020.promise.d.ts"],

1
src/lib/es2019.d.ts vendored
View File

@@ -3,3 +3,4 @@
/// <reference lib="es2019.object" />
/// <reference lib="es2019.string" />
/// <reference lib="es2019.symbol" />
/// <reference lib="es2019.intl" />

5
src/lib/es2019.intl.d.ts vendored Normal file
View File

@@ -0,0 +1,5 @@
declare namespace Intl {
interface DateTimeFormatPartTypesRegistry {
unknown: any
}
}

View File

@@ -43,6 +43,7 @@
"es2019.object",
"es2019.string",
"es2019.symbol",
"es2019.intl",
"es2020.bigint",
"es2020.date",
"es2020.promise",