Skip to content

Commit e90d338

Browse files
committed
test(linter/no-undef): add test case for TSImportType
1 parent e1da626 commit e90d338

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/oxc_linter/src/rules/eslint/no_undef.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@ fn test() {
172172
("function resolve<T>(path: string): T { return { path } as T; }", None, None),
173173
("let xyz: NodeListOf<HTMLElement>", None, None),
174174
("type Foo = Record<string, unknown>;", None, None),
175+
(
176+
"export interface StoreImpl { onOutputBlobs: (callback: (blobs: MediaSetBlobs) => void) => import('rxjs').Subscription; }",
177+
None,
178+
None,
179+
),
175180
];
176181

177182
let fail = vec![

0 commit comments

Comments
 (0)