Home > @microsoft/api-extractor > CompilerState

CompilerState class

This class represents the TypeScript compiler state. This allows an optimization where multiple invocations of API Extractor can reuse the same TypeScript compiler analysis.


export declare class CompilerState 


Property Modifiers Type Description
program   unknown The TypeScript compiler’s Program object, which represents a complete scope of analysis.


Method Modifiers Description
create(extractorConfig, options) static Create a compiler state for use with the specified IExtractorInvokeOptions.