Home > @microsoft/api-extractor-model > ApiDeclaredItem
ApiDeclaredItem class
The base class for API items that have an associated source code excerpt containing a TypeScript declaration.
Signature:
export declare class ApiDeclaredItem extends ApiDocumentedItem
Extends: ApiDocumentedItem
Remarks
This is part of the ApiModel hierarchy of classes, which are serializable representations of API declarations.
Most ApiItem subclasses have declarations and thus extend ApiDeclaredItem. Counterexamples include ApiModel and ApiPackage, which do not have any corresponding TypeScript source code.
Constructors
Constructor | Modifiers | Description |
|---|---|---|
Constructs a new instance of the |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| The source code excerpt where the API item is declared. | ||
| ReadonlyArray<ExcerptToken> | The individual source code tokens that comprise the main excerpt. | |
| string | undefined | The file URL path relative to the | |
| Returns the source location where the API item is declared. |
Methods
Method | Modifiers | Description |
|---|---|---|
Constructs a new Excerpt corresponding to the provided token range. | ||
If the API item has certain important modifier tags such as | ||
| ||