Skip to content

Commit 6c13ec8

Browse files
Accepted baselines.
1 parent 34e93a1 commit 6c13ec8

12 files changed

+84
-72
lines changed

tests/baselines/reference/nodeModulesImportModeDeclarationEmit1(module=node16).errors.txt

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,44 @@
1+
/index.ts(1,45): error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
2+
/index.ts(2,44): error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
13
/index.ts(6,50): error TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.
4+
/index.ts(6,50): error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
25
/index.ts(7,14): error TS2305: Module '"pkg"' has no exported member 'ImportInterface'.
36
/index.ts(7,49): error TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.
7+
/index.ts(7,49): error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
8+
/index.ts(10,45): error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
9+
/index.ts(11,44): error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
410

511

6-
==== /index.ts (3 errors) ====
12+
==== /index.ts (9 errors) ====
713
import type { RequireInterface } from "pkg" assert { "resolution-mode": "require" };
14+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15+
!!! error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
816
import type { ImportInterface } from "pkg" assert { "resolution-mode": "import" };
17+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18+
!!! error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
919

1020
export interface LocalInterface extends RequireInterface, ImportInterface {}
1121

1222
import {type RequireInterface as Req} from "pkg" assert { "resolution-mode": "require" };
1323
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1424
!!! error TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.
25+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26+
!!! error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
1527
import {type ImportInterface as Imp} from "pkg" assert { "resolution-mode": "import" };
1628
~~~~~~~~~~~~~~~
1729
!!! error TS2305: Module '"pkg"' has no exported member 'ImportInterface'.
1830
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1931
!!! error TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.
32+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33+
!!! error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
2034
export interface Loc extends Req, Imp {}
2135

2236
export type { RequireInterface } from "pkg" assert { "resolution-mode": "require" };
37+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38+
!!! error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
2339
export type { ImportInterface } from "pkg" assert { "resolution-mode": "import" };
40+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
41+
!!! error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
2442

2543
==== /node_modules/pkg/package.json (0 errors) ====
2644
{

tests/baselines/reference/nodeModulesImportModeDeclarationEmit1(module=node16).js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,3 @@ export type { ImportInterface } from "pkg" assert { "resolution-mode": "import"
3030
//// [index.js]
3131
"use strict";
3232
Object.defineProperty(exports, "__esModule", { value: true });
33-
34-
35-
//// [index.d.ts]
36-
import type { RequireInterface } from "pkg" assert { "resolution-mode": "require" };
37-
import type { ImportInterface } from "pkg" assert { "resolution-mode": "import" };
38-
export interface LocalInterface extends RequireInterface, ImportInterface {
39-
}
40-
import { type RequireInterface as Req } from "pkg" assert { "resolution-mode": "require" };
41-
import { type ImportInterface as Imp } from "pkg" assert { "resolution-mode": "import" };
42-
export interface Loc extends Req, Imp {
43-
}
44-
export type { RequireInterface } from "pkg" assert { "resolution-mode": "require" };
45-
export type { ImportInterface } from "pkg" assert { "resolution-mode": "import" };

tests/baselines/reference/nodeModulesImportModeDeclarationEmit1(module=nodenext).errors.txt

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,44 @@
1+
/index.ts(1,45): error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
2+
/index.ts(2,44): error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
13
/index.ts(6,50): error TS2836: Import assertions are not allowed on statements that transpile to commonjs 'require' calls.
4+
/index.ts(6,50): error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
25
/index.ts(7,14): error TS2305: Module '"pkg"' has no exported member 'ImportInterface'.
36
/index.ts(7,49): error TS2836: Import assertions are not allowed on statements that transpile to commonjs 'require' calls.
7+
/index.ts(7,49): error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
8+
/index.ts(10,45): error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
9+
/index.ts(11,44): error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
410

511

6-
==== /index.ts (3 errors) ====
12+
==== /index.ts (9 errors) ====
713
import type { RequireInterface } from "pkg" assert { "resolution-mode": "require" };
14+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15+
!!! error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
816
import type { ImportInterface } from "pkg" assert { "resolution-mode": "import" };
17+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18+
!!! error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
919

1020
export interface LocalInterface extends RequireInterface, ImportInterface {}
1121

1222
import {type RequireInterface as Req} from "pkg" assert { "resolution-mode": "require" };
1323
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1424
!!! error TS2836: Import assertions are not allowed on statements that transpile to commonjs 'require' calls.
25+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26+
!!! error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
1527
import {type ImportInterface as Imp} from "pkg" assert { "resolution-mode": "import" };
1628
~~~~~~~~~~~~~~~
1729
!!! error TS2305: Module '"pkg"' has no exported member 'ImportInterface'.
1830
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1931
!!! error TS2836: Import assertions are not allowed on statements that transpile to commonjs 'require' calls.
32+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33+
!!! error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
2034
export interface Loc extends Req, Imp {}
2135

2236
export type { RequireInterface } from "pkg" assert { "resolution-mode": "require" };
37+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38+
!!! error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
2339
export type { ImportInterface } from "pkg" assert { "resolution-mode": "import" };
40+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
41+
!!! error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
2442

2543
==== /node_modules/pkg/package.json (0 errors) ====
2644
{

tests/baselines/reference/nodeModulesImportModeDeclarationEmit1(module=nodenext).js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,3 @@ export type { ImportInterface } from "pkg" assert { "resolution-mode": "import"
3030
//// [index.js]
3131
"use strict";
3232
Object.defineProperty(exports, "__esModule", { value: true });
33-
34-
35-
//// [index.d.ts]
36-
import type { RequireInterface } from "pkg" assert { "resolution-mode": "require" };
37-
import type { ImportInterface } from "pkg" assert { "resolution-mode": "import" };
38-
export interface LocalInterface extends RequireInterface, ImportInterface {
39-
}
40-
import { type RequireInterface as Req } from "pkg" assert { "resolution-mode": "require" };
41-
import { type ImportInterface as Imp } from "pkg" assert { "resolution-mode": "import" };
42-
export interface Loc extends Req, Imp {
43-
}
44-
export type { RequireInterface } from "pkg" assert { "resolution-mode": "require" };
45-
export type { ImportInterface } from "pkg" assert { "resolution-mode": "import" };

tests/baselines/reference/nodeModulesImportModeDeclarationEmit2(module=node16).errors.txt

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
1+
/index.ts(1,45): error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
2+
/index.ts(2,44): error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
13
/index.ts(6,14): error TS2305: Module '"pkg"' has no exported member 'RequireInterface'.
24
/index.ts(6,50): error TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.
5+
/index.ts(6,50): error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
36
/index.ts(7,49): error TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.
7+
/index.ts(7,49): error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
8+
/index.ts(10,45): error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
9+
/index.ts(11,44): error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
410

511

6-
==== /index.ts (3 errors) ====
12+
==== /index.ts (9 errors) ====
713
import type { RequireInterface } from "pkg" assert { "resolution-mode": "require" };
14+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15+
!!! error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
816
import type { ImportInterface } from "pkg" assert { "resolution-mode": "import" };
17+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18+
!!! error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
919

1020
export interface LocalInterface extends RequireInterface, ImportInterface {}
1121

@@ -14,13 +24,21 @@
1424
!!! error TS2305: Module '"pkg"' has no exported member 'RequireInterface'.
1525
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1626
!!! error TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.
27+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28+
!!! error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
1729
import {type ImportInterface as Imp} from "pkg" assert { "resolution-mode": "import" };
1830
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1931
!!! error TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.
32+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33+
!!! error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
2034
export interface Loc extends Req, Imp {}
2135

2236
export type { RequireInterface } from "pkg" assert { "resolution-mode": "require" };
37+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38+
!!! error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
2339
export type { ImportInterface } from "pkg" assert { "resolution-mode": "import" };
40+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
41+
!!! error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
2442

2543
==== /node_modules/pkg/package.json (0 errors) ====
2644
{

tests/baselines/reference/nodeModulesImportModeDeclarationEmit2(module=node16).js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,3 @@ export type { ImportInterface } from "pkg" assert { "resolution-mode": "import"
3434

3535
//// [index.js]
3636
export {};
37-
38-
39-
//// [index.d.ts]
40-
import type { RequireInterface } from "pkg" assert { "resolution-mode": "require" };
41-
import type { ImportInterface } from "pkg" assert { "resolution-mode": "import" };
42-
export interface LocalInterface extends RequireInterface, ImportInterface {
43-
}
44-
import { type RequireInterface as Req } from "pkg" assert { "resolution-mode": "require" };
45-
import { type ImportInterface as Imp } from "pkg" assert { "resolution-mode": "import" };
46-
export interface Loc extends Req, Imp {
47-
}
48-
export type { RequireInterface } from "pkg" assert { "resolution-mode": "require" };
49-
export type { ImportInterface } from "pkg" assert { "resolution-mode": "import" };

tests/baselines/reference/nodeModulesImportModeDeclarationEmit2(module=nodenext).errors.txt

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
1+
/index.ts(1,45): error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
2+
/index.ts(2,44): error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
13
/index.ts(6,14): error TS2305: Module '"pkg"' has no exported member 'RequireInterface'.
24
/index.ts(6,50): error TS1454: `resolution-mode` can only be set for type-only imports.
5+
/index.ts(6,50): error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
36
/index.ts(7,49): error TS1454: `resolution-mode` can only be set for type-only imports.
7+
/index.ts(7,49): error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
8+
/index.ts(10,45): error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
9+
/index.ts(11,44): error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
410

511

6-
==== /index.ts (3 errors) ====
12+
==== /index.ts (9 errors) ====
713
import type { RequireInterface } from "pkg" assert { "resolution-mode": "require" };
14+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15+
!!! error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
816
import type { ImportInterface } from "pkg" assert { "resolution-mode": "import" };
17+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18+
!!! error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
919

1020
export interface LocalInterface extends RequireInterface, ImportInterface {}
1121

@@ -14,13 +24,21 @@
1424
!!! error TS2305: Module '"pkg"' has no exported member 'RequireInterface'.
1525
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1626
!!! error TS1454: `resolution-mode` can only be set for type-only imports.
27+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28+
!!! error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
1729
import {type ImportInterface as Imp} from "pkg" assert { "resolution-mode": "import" };
1830
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1931
!!! error TS1454: `resolution-mode` can only be set for type-only imports.
32+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33+
!!! error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
2034
export interface Loc extends Req, Imp {}
2135

2236
export type { RequireInterface } from "pkg" assert { "resolution-mode": "require" };
37+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38+
!!! error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
2339
export type { ImportInterface } from "pkg" assert { "resolution-mode": "import" };
40+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
41+
!!! error TS4125: Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.
2442

2543
==== /node_modules/pkg/package.json (0 errors) ====
2644
{

tests/baselines/reference/nodeModulesImportModeDeclarationEmit2(module=nodenext).js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,3 @@ export type { ImportInterface } from "pkg" assert { "resolution-mode": "import"
3434

3535
//// [index.js]
3636
export {};
37-
38-
39-
//// [index.d.ts]
40-
import type { RequireInterface } from "pkg" assert { "resolution-mode": "require" };
41-
import type { ImportInterface } from "pkg" assert { "resolution-mode": "import" };
42-
export interface LocalInterface extends RequireInterface, ImportInterface {
43-
}
44-
import { type RequireInterface as Req } from "pkg" assert { "resolution-mode": "require" };
45-
import { type ImportInterface as Imp } from "pkg" assert { "resolution-mode": "import" };
46-
export interface Loc extends Req, Imp {
47-
}
48-
export type { RequireInterface } from "pkg" assert { "resolution-mode": "require" };
49-
export type { ImportInterface } from "pkg" assert { "resolution-mode": "import" };

0 commit comments

Comments
 (0)