Skip to content

Commit 629a710

Browse files
Add test case for symbol property key import in declaration emit
Co-authored-by: DanielRosenwasser <972891+DanielRosenwasser@users.noreply.github.com>
1 parent 5430ba6 commit 629a710

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// @target: es2015
2+
// @declaration: true
3+
// @module: commonjs
4+
5+
// @filename: node_modules/test-pkg/index.d.ts
6+
declare const lostSymbol: unique symbol;
7+
type lostSymbol = typeof lostSymbol;
8+
9+
type SomeGeneric<T> = {
10+
[lostSymbol]: T;
11+
};
12+
13+
declare function fn(): SomeGeneric<unknown>;
14+
15+
export {
16+
lostSymbol,
17+
fn
18+
};
19+
20+
// @filename: index.ts
21+
import { fn } from 'test-pkg';
22+
export const value = fn();

0 commit comments

Comments
 (0)