import * as ts from 'typescript' ; const printer = ts . createPrinter ( ) ; export function printNode ( nodeArray ) { return printer . printList ( ts . ListFormat . MultiLine , ts . createNodeArray ( nodeArray ) , ts . createSourceFile ( '' , '' , ts . ScriptTarget . ES2015 ) ) ; }