Skip to content

Commit 646a75a

Browse files
committed
Commit baselines
1 parent 0ce692d commit 646a75a

File tree

590 files changed

+7579
-14125
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

590 files changed

+7579
-14125
lines changed

testdata/baselines/reference/submodule/compiler/allowJsCrossMonorepoPackage.errors.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/packages/main/index.ts(1,19): error TS2307: Cannot find module 'shared' or its corresponding type declarations.
1+
/packages/main/index.ts(1,19): error TS7016: Could not find a declaration file for module 'shared'. '/packages/shared/index.js' implicitly has an 'any' type.
2+
Try `npm i --save-dev @types/shared` if it exists or add a new declaration (.d.ts) file containing `declare module 'shared';`
23

34

45
==== /packages/main/tsconfig.json (0 errors) ====
@@ -17,7 +18,8 @@
1718
==== /packages/main/index.ts (1 errors) ====
1819
import { x } from "shared";
1920
~~~~~~~~
20-
!!! error TS2307: Cannot find module 'shared' or its corresponding type declarations.
21+
!!! error TS7016: Could not find a declaration file for module 'shared'. '/packages/shared/index.js' implicitly has an 'any' type.
22+
!!! error TS7016: Try `npm i --save-dev @types/shared` if it exists or add a new declaration (.d.ts) file containing `declare module 'shared';`
2123

2224
==== /node_modules/pkg/index.d.ts (0 errors) ====
2325
export declare function pkg(): "pkg";

testdata/baselines/reference/submodule/compiler/allowJsCrossMonorepoPackage.errors.txt.diff

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
@@= skipped -0, +-1 lines =@@
44
-<no content>
55
@@= skipped --1, +1 lines =@@
6-
+/packages/main/index.ts(1,19): error TS2307: Cannot find module 'shared' or its corresponding type declarations.
6+
+/packages/main/index.ts(1,19): error TS7016: Could not find a declaration file for module 'shared'. '/packages/shared/index.js' implicitly has an 'any' type.
7+
+ Try `npm i --save-dev @types/shared` if it exists or add a new declaration (.d.ts) file containing `declare module 'shared';`
78
+
89
+
910
+==== /packages/main/tsconfig.json (0 errors) ====
@@ -22,7 +23,8 @@
2223
+==== /packages/main/index.ts (1 errors) ====
2324
+ import { x } from "shared";
2425
+ ~~~~~~~~
25-
+!!! error TS2307: Cannot find module 'shared' or its corresponding type declarations.
26+
+!!! error TS7016: Could not find a declaration file for module 'shared'. '/packages/shared/index.js' implicitly has an 'any' type.
27+
+!!! error TS7016: Try `npm i --save-dev @types/shared` if it exists or add a new declaration (.d.ts) file containing `declare module 'shared';`
2628
+
2729
+==== /node_modules/pkg/index.d.ts (0 errors) ====
2830
+ export declare function pkg(): "pkg";

testdata/baselines/reference/submodule/compiler/declarationEmitBundlerConditions.errors.txt

Lines changed: 0 additions & 35 deletions
This file was deleted.

testdata/baselines/reference/submodule/compiler/declarationEmitBundlerConditions.errors.txt.diff

Lines changed: 0 additions & 40 deletions
This file was deleted.

testdata/baselines/reference/submodule/compiler/declarationEmitMonorepoBaseUrl.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,13 @@ export function resolveParserPlugins() {
4444

4545

4646
//// [index.js]
47-
export {};
47+
"use strict";
48+
Object.defineProperty(exports, "__esModule", { value: true });
4849
//// [index.js]
49-
import { createPlugin } from "@babel/parser";
50-
export function resolveParserPlugins() {
51-
return [createPlugin()];
50+
"use strict";
51+
Object.defineProperty(exports, "__esModule", { value: true });
52+
exports.resolveParserPlugins = resolveParserPlugins;
53+
const parser_1 = require("@babel/parser");
54+
function resolveParserPlugins() {
55+
return [(0, parser_1.createPlugin)()];
5256
}

testdata/baselines/reference/submodule/compiler/declarationEmitMonorepoBaseUrl.js.diff

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,8 @@
11
--- old.declarationEmitMonorepoBaseUrl.js
22
+++ new.declarationEmitMonorepoBaseUrl.js
3-
@@= skipped -43, +43 lines =@@
4-
5-
6-
//// [index.js]
7-
-"use strict";
8-
-Object.defineProperty(exports, "__esModule", { value: true });
9-
+export {};
10-
//// [index.js]
11-
-"use strict";
12-
-Object.defineProperty(exports, "__esModule", { value: true });
13-
-exports.resolveParserPlugins = resolveParserPlugins;
14-
-const parser_1 = require("@babel/parser");
15-
-function resolveParserPlugins() {
16-
- return [(0, parser_1.createPlugin)()];
17-
+import { createPlugin } from "@babel/parser";
18-
+export function resolveParserPlugins() {
19-
+ return [createPlugin()];
3+
@@= skipped -53, +53 lines =@@
4+
function resolveParserPlugins() {
5+
return [(0, parser_1.createPlugin)()];
206
}
217
-
228
-

testdata/baselines/reference/submodule/compiler/declarationEmitReusesLambdaParameterNodes.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,10 @@ export function CustomSelect2<Option,>(x: Props<Option> & {}) {}
1212

1313

1414
//// [index.js]
15-
export const CustomSelect1 = (x) => { };
16-
export function CustomSelect2(x) { }
15+
"use strict";
16+
Object.defineProperty(exports, "__esModule", { value: true });
17+
exports.CustomSelect1 = void 0;
18+
exports.CustomSelect2 = CustomSelect2;
19+
const CustomSelect1 = (x) => { };
20+
exports.CustomSelect1 = CustomSelect1;
21+
function CustomSelect2(x) { }
Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,12 @@
11
--- old.declarationEmitReusesLambdaParameterNodes.js
22
+++ new.declarationEmitReusesLambdaParameterNodes.js
3-
@@= skipped -11, +11 lines =@@
4-
5-
6-
//// [index.js]
7-
-"use strict";
8-
-Object.defineProperty(exports, "__esModule", { value: true });
9-
-exports.CustomSelect1 = void 0;
10-
-exports.CustomSelect2 = CustomSelect2;
11-
-const CustomSelect1 = (x) => { };
12-
-exports.CustomSelect1 = CustomSelect1;
13-
-function CustomSelect2(x) { }
3+
@@= skipped -18, +18 lines =@@
4+
const CustomSelect1 = (x) => { };
5+
exports.CustomSelect1 = CustomSelect1;
6+
function CustomSelect2(x) { }
147
-
158
-
169
-//// [index.d.ts]
1710
-import { Props } from "react-select";
1811
-export declare const CustomSelect1: <Option>(x: Props<Option> & {}) => void;
1912
-export declare function CustomSelect2<Option>(x: Props<Option> & {}): void;
20-
+export const CustomSelect1 = (x) => { };
21-
+export function CustomSelect2(x) { }

0 commit comments

Comments
 (0)