import * as ts from "typescript" ; export class CompilerResult { private status : ts . ExitStatus ; private readonly errors : ReadonlyArray < ts . Diagnostic > ; constructor ( status , errors ? ) { this . status = status ; this . errors = errors ; } public getErrors ( ) { return this . errors ; } public getStatus ( ) { return this . status ; } public succeeded ( ) { return ( this . status === ts . ExitStatus . Success ) ; } }