A generator for astring that enables it to generate TypeScript code from an Abstract Syntax Tree (AST) parsed from TypeScript files. The generator is compliant with AST code generated by acorn-typescript to support TypeScript syntax.
npm install astring-ts-generator
import generator from '@vardario/astring-ts-generator';
const code = astring.generate(ast, { generator });