Home > @microsoft/api-extractor-model > ApiEntryPoint > importPath

ApiEntryPoint.importPath property

The module path for this entry point, relative to the parent ApiPackage. In the current implementation, this is always the empty string, indicating the default entry point.

Signature:

readonly importPath: string;

Remarks

API Extractor does not currently support analysis of multiple entry points. If that feature is implemented in the future, then the ApiEntryPoint.importPath will be used to distinguish different entry points, for example: controls/Button in import { Button } from "example-package/controls/Button";.

The ApiEntryPoint.name property stores the same value as ApiEntryPoint.importPath.