mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
572 B
Plaintext
15 lines
572 B
Plaintext
declarationEmitInvalidExport.ts(4,30): error TS4081: Exported type alias 'MyClass' has or is using private name 'myClass'.
|
|
declarationEmitInvalidExport.ts(5,1): error TS1128: Declaration or statement expected.
|
|
|
|
|
|
==== declarationEmitInvalidExport.ts (2 errors) ====
|
|
if (false) {
|
|
export var myClass = 0;
|
|
}
|
|
export type MyClass = typeof myClass;
|
|
~~~~~~~
|
|
!!! error TS4081: Exported type alias 'MyClass' has or is using private name 'myClass'.
|
|
}
|
|
~
|
|
!!! error TS1128: Declaration or statement expected.
|
|
|