Skip to content

Commit

Permalink
move unknown to es2019.intl instead
Browse files Browse the repository at this point in the history
  • Loading branch information
long.ho committed Aug 26, 2022
1 parent d1bed56 commit f083332
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/compiler/commandLineParser.ts
Expand Up @@ -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"],
Expand Down
1 change: 0 additions & 1 deletion src/lib/es2017.intl.d.ts
Expand Up @@ -12,7 +12,6 @@ declare namespace Intl {
timeZoneName: any
weekday: any
year: any
unknown: any
}

type DateTimeFormatPartTypes = keyof DateTimeFormatPartTypesRegistry;
Expand Down
1 change: 1 addition & 0 deletions src/lib/es2019.d.ts
Expand Up @@ -3,3 +3,4 @@
/// <reference lib="es2019.object" />
/// <reference lib="es2019.string" />
/// <reference lib="es2019.symbol" />
/// <reference lib="es2019.intl" />
5 changes: 5 additions & 0 deletions src/lib/es2019.intl.d.ts
@@ -0,0 +1,5 @@
declare namespace Intl {
interface DateTimeFormatPartTypesRegistry {
unknown: any
}
}
1 change: 1 addition & 0 deletions src/lib/libs.json
Expand Up @@ -43,6 +43,7 @@
"es2019.object",
"es2019.string",
"es2019.symbol",
"es2019.intl",
"es2020.bigint",
"es2020.date",
"es2020.promise",
Expand Down

0 comments on commit f083332

Please sign in to comment.