Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Program

Hierarchy

Index

Methods

emit

  • Emits the JavaScript and declaration files. If targetSourceFile is not specified, then the JavaScript and declaration files will be produced for all the files in this program. If targetSourceFile is specified, then only the JavaScript and declaration for that specific file will be generated.

    If writeFile is not specified then the writeFile callback from the compiler host will be used for writing the JavaScript and declaration files. Otherwise, the writeFile parameter will be invoked when writing the JavaScript and declaration files.

    Parameters

    Returns EmitResult

getCompilerOptions

getConfigFileParsingDiagnostics

  • getConfigFileParsingDiagnostics(): readonly Diagnostic[]

getCurrentDirectory

  • getCurrentDirectory(): string

getDeclarationDiagnostics

getGlobalDiagnostics

getIdentifierCount

  • getIdentifierCount(): number

getInstantiationCount

  • getInstantiationCount(): number

getNodeCount

  • getNodeCount(): number

getOptionsDiagnostics

getProjectReferences

getRelationCacheSizes

  • getRelationCacheSizes(): { assignable: number; identity: number; strictSubtype: number; subtype: number }
  • Returns { assignable: number; identity: number; strictSubtype: number; subtype: number }

    • assignable: number
    • identity: number
    • strictSubtype: number
    • subtype: number

getResolvedProjectReferences

getRootFileNames

  • getRootFileNames(): readonly string[]
  • Get a list of root file names that were passed to a 'createProgram'

    Returns readonly string[]

getSemanticDiagnostics

getSourceFile

getSourceFileByPath

getSourceFiles

getSymbolCount

  • getSymbolCount(): number

getSyntacticDiagnostics

getTypeCatalog

  • getTypeCatalog(): readonly Type[]

getTypeChecker

getTypeCount

  • getTypeCount(): number

isSourceFileDefaultLibrary

  • isSourceFileDefaultLibrary(file: SourceFile): boolean

isSourceFileFromExternalLibrary

  • isSourceFileFromExternalLibrary(file: SourceFile): boolean

Generated using TypeDoc