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.
export type alias does not generate the ExportNamedDeclaration node #134
Closed
Description
What version of TypeScript are you using?
2.1.4
What version of typescript-eslint-parser
are you using?
1.0.0, but also tested using 1.0.1
What code were you trying to parse?
export type TestAlias = string | number;
export type TestClassProps = {
count: number
};
export type TestCallback = (a: number) => void;
Basically, any export type xxx = yyy
What did you expect to happen?
The final ESTree output should contain an ExportNamedDeclaration node whose declaration node is a VariableDeclaration of kind = type
What happened?
The ExportNamedDeclaration is not being generated because the export modifier is not considered in the ast-converter (missing a fixExports function call).
I already have a PR for this, I will send this along