import * as path from "path" ; import * as ts from "typescript" ; function isDefined < T > ( x ) { return typeof x !== "undefined" ; } const program = ts . createProgram ( { options : { target : ts . ScriptTarget . ESNext } , rootNames : [ path . join ( __dirname , ".." , "examples" , "hello-ts" , "src" , "index.ts" ) ] } ) ;