@@ -53,22 +53,22 @@ tests/cases/conformance/es2020/es2020IntlAPIs.ts(50,29): error TS2345: Argument
53
53
new Intl.Locale(); // should error
54
54
~~~~~~~~~~~~~~~~~
55
55
!!! error TS2554: Expected 1-2 arguments, but got 0.
56
- !!! related TS6210 /.ts/lib.es2020.intl.d.ts:311 :14: An argument for 'tag' was not provided.
56
+ !!! related TS6210 /.ts/lib.es2020.intl.d.ts:335 :14: An argument for 'tag' was not provided.
57
57
new Intl.Locale(new Intl.Locale('en-US'));
58
58
59
59
new Intl.DisplayNames(); // TypeError: invalid_argument
60
60
~~~~~~~~~~~~~~~~~~~~~~~
61
61
!!! error TS2554: Expected 2 arguments, but got 0.
62
- !!! related TS6210 /.ts/lib.es2020.intl.d.ts:390 :13: An argument for 'locales' was not provided.
62
+ !!! related TS6210 /.ts/lib.es2020.intl.d.ts:414 :13: An argument for 'locales' was not provided.
63
63
new Intl.DisplayNames('en'); // TypeError: invalid_argument
64
64
~~~~~~~~~~~~~~~~~~~~~~~~~~~
65
65
!!! error TS2554: Expected 2 arguments, but got 1.
66
- !!! related TS6210 /.ts/lib.es2020.intl.d.ts:390 :39: An argument for 'options' was not provided.
66
+ !!! related TS6210 /.ts/lib.es2020.intl.d.ts:414 :39: An argument for 'options' was not provided.
67
67
new Intl.DisplayNames('en', {}); // TypeError: invalid_argument
68
68
~~
69
69
!!! error TS2345: Argument of type '{}' is not assignable to parameter of type 'DisplayNamesOptions'.
70
70
!!! error TS2345: Property 'type' is missing in type '{}' but required in type 'DisplayNamesOptions'.
71
- !!! related TS2728 /.ts/lib.es2020.intl.d.ts:333 :9: 'type' is declared here.
71
+ !!! related TS2728 /.ts/lib.es2020.intl.d.ts:357 :9: 'type' is declared here.
72
72
console.log((new Intl.DisplayNames(undefined, {type: 'language'})).of('en-GB')); // "British English"
73
73
74
74
const localesArg = ["es-ES", new Intl.Locale("en-US")];
0 commit comments