mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
540 B
Plaintext
17 lines
540 B
Plaintext
a.ts(4,24): error TS2304: Cannot find name 'default'.
|
|
b.ts(2,24): error TS2304: Cannot find name 'default'.
|
|
|
|
|
|
==== a.ts (1 errors) ====
|
|
export default function () {
|
|
return true;
|
|
}
|
|
export type X = typeof default; // expect error
|
|
~~~~~~~
|
|
!!! error TS2304: Cannot find name 'default'.
|
|
|
|
==== b.ts (1 errors) ====
|
|
export default { a: true }
|
|
export type X = typeof default; // expect error
|
|
~~~~~~~
|
|
!!! error TS2304: Cannot find name 'default'. |