mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
696 B
Plaintext
17 lines
696 B
Plaintext
exportDefaultFunctionInNamespace.ts(2,12): error TS1319: A default export can only be used in an ECMAScript-style module.
|
|
exportDefaultFunctionInNamespace.ts(6,12): error TS1319: A default export can only be used in an ECMAScript-style module.
|
|
|
|
|
|
==== exportDefaultFunctionInNamespace.ts (2 errors) ====
|
|
namespace ns_function {
|
|
export default function () {}
|
|
~~~~~~~
|
|
!!! error TS1319: A default export can only be used in an ECMAScript-style module.
|
|
}
|
|
|
|
namespace ns_async_function {
|
|
export default async function () {}
|
|
~~~~~~~
|
|
!!! error TS1319: A default export can only be used in an ECMAScript-style module.
|
|
}
|
|
|