mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
531 B
Plaintext
19 lines
531 B
Plaintext
d.ts(2,5): error TS1362: 'A' cannot be used as a value because it was exported using 'export type'.
|
|
|
|
|
|
==== a.ts (0 errors) ====
|
|
export class A {}
|
|
|
|
==== b.ts (0 errors) ====
|
|
export type { A } from './a';
|
|
|
|
==== c.ts (0 errors) ====
|
|
export * from './b';
|
|
|
|
==== d.ts (1 errors) ====
|
|
import { A } from './c';
|
|
new A(); // Error
|
|
~
|
|
!!! error TS1362: 'A' cannot be used as a value because it was exported using 'export type'.
|
|
!!! related TS1377 b.ts:1:15: 'A' was exported here.
|
|
|