Skip to content

Commit 2d702aa

Browse files
committed
Accept baselines
1 parent 18b8b63 commit 2d702aa

File tree

3 files changed

+77
-0
lines changed

3 files changed

+77
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
//// [tests/cases/compiler/tslibReExportHelpers.ts] ////
2+
3+
//// [index.d.ts]
4+
export declare function __decorate(...args: any[]): any;
5+
6+
//// [index.d.mts]
7+
export * from "./index.js";
8+
9+
//// [package.json]
10+
{
11+
"name": "tslib",
12+
"version": "1.0.0",
13+
"types": "index.d.ts",
14+
"exports": {
15+
".": {
16+
"types": {
17+
"import": "./index.d.mts",
18+
"default": "./index.d.ts"
19+
}
20+
}
21+
}
22+
}
23+
24+
//// [index.mts]
25+
declare var decorator: any;
26+
@decorator
27+
export class Foo {}
28+
29+
30+
//// [index.mjs]
31+
import { __decorate } from "tslib";
32+
export var Foo = /** @class */ (function () {
33+
function Foo() {
34+
}
35+
Foo = __decorate([
36+
decorator
37+
], Foo);
38+
return Foo;
39+
}());
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
=== /node_modules/tslib/index.d.ts ===
2+
export declare function __decorate(...args: any[]): any;
3+
>__decorate : Symbol(__decorate, Decl(index.d.ts, 0, 0))
4+
>args : Symbol(args, Decl(index.d.ts, 0, 35))
5+
6+
=== /node_modules/tslib/index.d.mts ===
7+
8+
export * from "./index.js";
9+
10+
=== /index.mts ===
11+
declare var decorator: any;
12+
>decorator : Symbol(decorator, Decl(index.mts, 0, 11))
13+
14+
@decorator
15+
>decorator : Symbol(decorator, Decl(index.mts, 0, 11))
16+
17+
export class Foo {}
18+
>Foo : Symbol(Foo, Decl(index.mts, 0, 27))
19+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
=== /node_modules/tslib/index.d.ts ===
2+
export declare function __decorate(...args: any[]): any;
3+
>__decorate : (...args: any[]) => any
4+
>args : any[]
5+
6+
=== /node_modules/tslib/index.d.mts ===
7+
8+
export * from "./index.js";
9+
10+
=== /index.mts ===
11+
declare var decorator: any;
12+
>decorator : any
13+
14+
@decorator
15+
>decorator : any
16+
17+
export class Foo {}
18+
>Foo : Foo
19+

0 commit comments

Comments
 (0)