Files
tsgo/testdata/baselines/reference/submoduleAccepted/conformance/es2020IntlAPIs.errors.txt.diff

22 lines
1.4 KiB
Diff

--- old.es2020IntlAPIs.errors.txt
+++ new.es2020IntlAPIs.errors.txt
@@= skipped -0, +0 lines =@@
es2020IntlAPIs.ts(45,1): error TS2554: Expected 1-2 arguments, but got 0.
es2020IntlAPIs.ts(48,1): error TS2554: Expected 2 arguments, but got 0.
es2020IntlAPIs.ts(49,1): error TS2554: Expected 2 arguments, but got 1.
-es2020IntlAPIs.ts(50,29): error TS2345: Argument of type '{}' is not assignable to parameter of type 'DisplayNamesOptions'.
- Property 'type' is missing in type '{}' but required in type 'DisplayNamesOptions'.
+es2020IntlAPIs.ts(50,29): error TS2741: Property 'type' is missing in type '{}' but required in type 'DisplayNamesOptions'.
==== es2020IntlAPIs.ts (4 errors) ====
@@= skipped -65, +64 lines =@@
!!! related TS6210 lib.es2020.intl.d.ts:--:--: An argument for 'options' was not provided.
new Intl.DisplayNames('en', {}); // TypeError: invalid_argument
~~
-!!! error TS2345: Argument of type '{}' is not assignable to parameter of type 'DisplayNamesOptions'.
-!!! error TS2345: Property 'type' is missing in type '{}' but required in type 'DisplayNamesOptions'.
+!!! error TS2741: Property 'type' is missing in type '{}' but required in type 'DisplayNamesOptions'.
!!! related TS2728 lib.es2020.intl.d.ts:--:--: 'type' is declared here.
console.log((new Intl.DisplayNames(undefined, {type: 'language'})).of('en-GB')); // "British English"