Home > @microsoft/api-extractor > ICompilerStateCreateOptions > typescriptCompilerFolder

ICompilerStateCreateOptions.typescriptCompilerFolder property

Specifies an alternate folder path to be used when loading the TypeScript system typings.

Signature:

typescriptCompilerFolder?: string;

Remarks

API Extractor uses its own TypeScript compiler engine to analyze your project. If your project is built with a significantly different TypeScript version, sometimes API Extractor may report compilation errors due to differences in the system typings (e.g. lib.dom.d.ts). You can use the “–typescriptCompilerFolder” option to specify the folder path where you installed the TypeScript package, and API Extractor’s compiler will use those system typings instead.