Skip to content

Commit 38a85cf

Browse files
committed
Add test to verify microsoft#26669 where declaration output is incorrect when declaration flag is not set explicitly in options
1 parent 02e1a32 commit 38a85cf

File tree

4 files changed

+45
-0
lines changed

4 files changed

+45
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//// [test.ts]
2+
interface Foo {
3+
x: number;
4+
}
5+
export default Foo;
6+
7+
8+
//// [/foo/out/test.js]
9+
"use strict";
10+
exports.__esModule = true;
11+
12+
13+
//// [/foo/out/test.d.ts]
14+
export default Foo;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
=== /foo/test.ts ===
2+
interface Foo {
3+
>Foo : Symbol(Foo, Decl(test.ts, 0, 0))
4+
5+
x: number;
6+
>x : Symbol(Foo.x, Decl(test.ts, 0, 15))
7+
}
8+
export default Foo;
9+
>Foo : Symbol(Foo, Decl(test.ts, 0, 0))
10+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
=== /foo/test.ts ===
2+
interface Foo {
3+
x: number;
4+
>x : number
5+
}
6+
export default Foo;
7+
>Foo : Foo
8+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// @composite: true
2+
// @fullEmitPaths: true
3+
4+
// @filename: /foo/tsconfig.json
5+
{
6+
"compilerOptions": { "composite": true, "outDir": "out" }
7+
}
8+
9+
// @filename: /foo/test.ts
10+
interface Foo {
11+
x: number;
12+
}
13+
export default Foo;

0 commit comments

Comments
 (0)