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.
Signature:
export declare class CompilerState
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
program | readonly | unknown | The TypeScript compiler's Program object, which represents a complete scope of analysis. |
Methods
Method | Modifiers | Description |
---|---|---|
create(extractorConfig, options) | static | Create a compiler state for use with the specified IExtractorInvokeOptions . |