TypeScript Version: 3.3.0-dev.20181229
Search Terms:
default export function property namespace
Code
export default function someFunc() {
return 'hello!';
}
someFunc.someProp = 'yo';
Expected behavior:
The declaration file should be valid
Actual behavior:
packages/proj-1/build/index.d.ts:2:26 - error TS1005: ';' expected.
2 export default namespace someFunc {
~~~~~~~~
packages/proj-1/build/index.d.ts:2:35 - error TS1005: ';' expected.
2 export default namespace someFunc {
Playground Link: Cannot be reproduced in the playground as the issue is in the d.ts file, not the JS. However, I've setup a repository: https://github.com/SimenB/tsc-b-auch
Related Issues: None found
TypeScript Version: 3.3.0-dev.20181229
Search Terms:
default export function property namespace
Code
Expected behavior:
The declaration file should be valid
Actual behavior:
Playground Link: Cannot be reproduced in the playground as the issue is in the
d.tsfile, not the JS. However, I've setup a repository: https://github.com/SimenB/tsc-b-auchRelated Issues: None found