**TypeScript Version:** 2.3.2 Code ```ts type Foo = {} ``` How can I generate a node that is equivalent of above source code?
Activity
mhegazy commentedon May 1, 2017
You need to add a
createTypeAliasDeclarationto factory.ts, something a la createClassDeclaration.mhegazy commentedon May 1, 2017
PRs welcomed.
mohsen1 commentedon May 1, 2017
Also need to add
{create|update}InterfaceDeclarationmohsen1 commentedon May 1, 2017
I came up with this hack for now:
mhegazy commentedon May 1, 2017
yup, #15497
[-]How to create a TypeAliasDeclaration?[/-][+]add ts.createTypeAliasDeclaration[/+]