RoadmapShopEvents
Skip to main content

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

PropertyModifiersTypeDescription
programunknownThe TypeScript compiler's Program object, which represents a complete scope of analysis.

Methods

MethodModifiersDescription
create(extractorConfig, options)staticCreate a compiler state for use with the specified IExtractorInvokeOptions.