Files
tsgo/testdata/baselines/reference/submoduleAccepted/compiler/importAssertionsDeprecatedIgnored.errors.txt.diff

34 lines
1.5 KiB
Diff

--- old.importAssertionsDeprecatedIgnored.errors.txt
+++ new.importAssertionsDeprecatedIgnored.errors.txt
@@= skipped -0, +0 lines =@@
-<no content>
+/a.ts(2,35): error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'.
+/b.ts(1,37): error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'.
+/c.ts(1,51): error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'.
+
+
+==== /a.ts (1 errors) ====
+ // With ignoreDeprecations: "6.0", import assertions should not produce a deprecation error.
+ import json from "./package.json" assert { type: "json" };
+ ~~~~~~
+!!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'.
+
+==== /b.ts (1 errors) ====
+ import * as data from "./data.json" assert { type: "json" };
+ ~~~~~~
+!!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'.
+
+==== /c.ts (1 errors) ====
+ export { default as config } from "./config.json" assert { type: "json" };
+ ~~~~~~
+!!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'.
+
+==== /package.json (0 errors) ====
+ {}
+
+==== /data.json (0 errors) ====
+ {}
+
+==== /config.json (0 errors) ====
+ {}
+