Home > @microsoft/api-extractor-model > ApiEntryPoint
ApiEntryPoint class
Represents the entry point for an NPM package.
Signature:
export declare class ApiEntryPoint extends ApiEntryPoint_base
Extends: ApiEntryPoint_base
Remarks
This is part of the ApiModel hierarchy of classes, which are serializable representations of API declarations.
ApiEntryPoint represents the entry point to an NPM package. API Extractor does not currently support analysis of multiple entry points, but the ApiEntryPoint object is included to support a future feature. In the current implementation, ApiEntryPoint.importPath is always the empty string.
For example, suppose the package.json file looks like this:
{
"name": "example-library",
"version": "1.0.0",
"main": "./lib/index.js",
"typings": "./lib/index.d.ts"
}
In this example, the ApiEntryPoint would represent the TypeScript module for ./lib/index.js.
Constructors
Constructor | Modifiers | Description |
|---|---|---|
Constructs a new instance of the |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| string | ||
| string | The module path for this entry point, relative to the parent | |
|
Methods
Method | Modifiers | Description |
|---|---|---|
(BETA) |