Skip to content

Commit d54094c

Browse files
Accepted baselines.
1 parent 318e957 commit d54094c

6 files changed

+98
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
//// [shorthandOfExportedEntity01_targetES2015_CommonJS.ts]
2+
3+
export const test = "test";
4+
5+
export function foo () {
6+
const x = { test };
7+
}
8+
9+
10+
//// [shorthandOfExportedEntity01_targetES2015_CommonJS.js]
11+
"use strict";
12+
exports.test = "test";
13+
function foo() {
14+
const x = { test };
15+
}
16+
exports.foo = foo;
17+
18+
19+
//// [shorthandOfExportedEntity01_targetES2015_CommonJS.d.ts]
20+
export declare const test: string;
21+
export declare function foo(): void;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
=== tests/cases/compiler/shorthandOfExportedEntity01_targetES2015_CommonJS.ts ===
2+
3+
export const test = "test";
4+
>test : Symbol(test, Decl(shorthandOfExportedEntity01_targetES2015_CommonJS.ts, 1, 12))
5+
6+
export function foo () {
7+
>foo : Symbol(foo, Decl(shorthandOfExportedEntity01_targetES2015_CommonJS.ts, 1, 27))
8+
9+
const x = { test };
10+
>x : Symbol(x, Decl(shorthandOfExportedEntity01_targetES2015_CommonJS.ts, 4, 7))
11+
>test : Symbol(test, Decl(shorthandOfExportedEntity01_targetES2015_CommonJS.ts, 4, 13))
12+
}
13+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
=== tests/cases/compiler/shorthandOfExportedEntity01_targetES2015_CommonJS.ts ===
2+
3+
export const test = "test";
4+
>test : string
5+
>"test" : string
6+
7+
export function foo () {
8+
>foo : () => void
9+
10+
const x = { test };
11+
>x : { test: string; }
12+
>{ test } : { test: string; }
13+
>test : string
14+
}
15+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
//// [shorthandOfExportedEntity02_targetES5_CommonJS.ts]
2+
3+
export const test = "test";
4+
5+
export function foo () {
6+
const x = { test };
7+
}
8+
9+
10+
//// [shorthandOfExportedEntity02_targetES5_CommonJS.js]
11+
"use strict";
12+
exports.test = "test";
13+
function foo() {
14+
var x = { test: exports.test };
15+
}
16+
exports.foo = foo;
17+
18+
19+
//// [shorthandOfExportedEntity02_targetES5_CommonJS.d.ts]
20+
export declare const test: string;
21+
export declare function foo(): void;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
=== tests/cases/compiler/shorthandOfExportedEntity02_targetES5_CommonJS.ts ===
2+
3+
export const test = "test";
4+
>test : Symbol(test, Decl(shorthandOfExportedEntity02_targetES5_CommonJS.ts, 1, 12))
5+
6+
export function foo () {
7+
>foo : Symbol(foo, Decl(shorthandOfExportedEntity02_targetES5_CommonJS.ts, 1, 27))
8+
9+
const x = { test };
10+
>x : Symbol(x, Decl(shorthandOfExportedEntity02_targetES5_CommonJS.ts, 4, 7))
11+
>test : Symbol(test, Decl(shorthandOfExportedEntity02_targetES5_CommonJS.ts, 4, 13))
12+
}
13+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
=== tests/cases/compiler/shorthandOfExportedEntity02_targetES5_CommonJS.ts ===
2+
3+
export const test = "test";
4+
>test : string
5+
>"test" : string
6+
7+
export function foo () {
8+
>foo : () => void
9+
10+
const x = { test };
11+
>x : { test: string; }
12+
>{ test } : { test: string; }
13+
>test : string
14+
}
15+

0 commit comments

Comments
 (0)