Skip to main content Link Search Menu Expand Document (external link)

Project overview

Added in v1.0.0


Table of contents


utils

Project (class)

Signature

export declare class Project { constructor(
    documentRegistry: ts.DocumentRegistry,
    readonly diagnosticWriter: DiagnosticWriter,
    cmdLine: ts.ParsedCommandLine,
    enhanceLanguageServiceHost?: (host: ts.LanguageServiceHost) => void
  ) }

Added in v1.0.0

addFile (method)

Signature

addFile(filePath: string)

Added in v1.0.0

setFile (method)

Signature

setFile(fileName: string, snapshot: ts.IScriptSnapshot): void

Added in v1.0.0

getSnapshot (method)

Signature

getSnapshot(filePath: string)

Added in v1.0.0

getType (method)

Signature

getType(node: ts.Node): ts.Type

Added in v1.0.0

getSymbol (method)

Signature

getSymbol(node: ts.Node): ts.Symbol | undefined

Added in v1.0.0

getFileDiagnostics (method)

Signature

getFileDiagnostics(fileName: string): ReadonlyArray<ts.Diagnostic>

Added in v1.0.0

validateFile (method)

Signature

validateFile(fileName: string): boolean

Added in v1.0.0

emitFile (method)

Signature

emitFile(fileName: string): Array<ts.OutputFile>

Added in v1.0.0

dispose (method)

Signature

dispose(): void

Added in v1.0.0

projectFiles (property)

Signature

readonly projectFiles: ProjectFileCache

Added in v1.0.0

externalFiles (property)

Signature

readonly externalFiles: ExternalFileCache

Added in v1.0.0

languageService (property)

Signature

readonly languageService: ts.LanguageService

Added in v1.0.0

program (property)

Signature

readonly program: ts.Program

Added in v1.0.0

typeChecker (property)

Signature

readonly typeChecker: ts.TypeChecker

Added in v1.0.0

languageServiceHost (property)

Signature

readonly languageServiceHost: ts.LanguageServiceHost

Added in v1.0.0