This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
declare global causing parse errors #570
Closed
Description
What version of TypeScript are you using?
3.0
What version of typescript-eslint-parser
are you using?
21.0.1
What code were you trying to parse?
declare global {
namespace NodeJS {
interface Process {
beemo: {
context: any;
tool: BeemoTool;
};
}
}
}
What did you expect to happen?
It parse.
What happened?
It fails with this error.
/Users/Miles/Sites/beemo/packages/core/src/index.ts
17:15 error Parse errors in imported module './types': Cannot read property '0' of undefined (undefined:undefined) import/export
This has happened on 2 projects now, both because of declare global
.