import * as ts from "typescript" ; export interface BundleFile { path : string ; extension : string ; text : string ; } export class BundleResult { private status : ts . ExitStatus ; private errors : ts . Diagnostic [ ] ; private bundleSource : BundleFile ; constructor ( status , errors ? , bundleSource ? ) { this . status = status ; this . errors = errors ; this . bundleSource = bundleSource ; } public getBundleSource ( ) { return this . bundleSource ; } public getErrors ( ) { return this . errors ; } public getStatus ( ) { return this . status ; } public succeeded ( ) { return ( this . status === ts . ExitStatus . Success ) ; } }