Home > @microsoft/api-extractor-model
api-extractor-model package
Use this library to read and write *.api.json files as defined by the API Extractor tool. These files are used to generate a documentation website for your TypeScript package. The files store the API signatures and doc comments that were extracted from your package.
Classes
Class | Description |
|---|---|
Represents a TypeScript function call signature. | |
Represents a TypeScript class declaration. | |
Represents a TypeScript class constructor declaration that belongs to an | |
Represents a TypeScript construct signature that belongs to an | |
The base class for API items that have an associated source code excerpt containing a TypeScript declaration. | |
An abstract base class for API declarations that can have an associated TSDoc comment. | |
Represents the entry point for an NPM package. | |
Represents a TypeScript enum declaration. | |
Represents a member of a TypeScript enum declaration. | |
Represents a TypeScript function declaration. | |
Represents a TypeScript index signature. | |
Represents a TypeScript class declaration. | |
The abstract base class for all members of an | |
Represents a TypeScript member function declaration that belongs to an | |
Represents a TypeScript member function declaration that belongs to an | |
A serializable representation of a collection of API declarations. | |
Represents a TypeScript namespace declaration. | |
Represents an NPM package containing API declarations. | |
Represents a TypeScript property declaration that belongs to an | |
The abstract base class for ApiProperty and ApiPropertySignature. | |
Represents a TypeScript property declaration that belongs to an | |
Represents a TypeScript type alias declaration. | |
Represents a TypeScript variable declaration. | |
The | |
Represents a fragment of text belonging to an Excerpt object. | |
Represents a type referenced via an "extends" or "implements" heritage clause for a TypeScript class or interface. | |
Represents a named parameter for a function-like declaration. | |
The source location where a given API item is declared. | |
Represents a named type parameter for a generic declaration. |
Enumerations
Enumeration | Description |
|---|---|
The type returned by the ApiItem.kind property, which can be used to easily distinguish subclasses of ApiItem. | |
Options for customizing the sort order of ApiEnum members. | |
Unique identifiers for messages returned as part of | |
A "release tag" is a custom TSDoc tag that is applied to an API to communicate the level of support provided for third-party developers. |
Functions
Function | Description |
|---|---|
Mixin function for ApiAbstractMixin. | |
Mixin function for ApiExportedMixin. | |
Mixin function for ApiInitializerMixin. | |
Mixin function for ApiDeclaredItem. | |
Mixin function for ApiNameMixin. | |
Mixin function for ApiOptionalMixin. | |
Mixin function for ApiParameterListMixin. | |
Mixin function for ApiProtectedMixin. | |
Mixin function for ApiReadonlyMixin. | |
Mixin function for ApiReleaseTagMixin. | |
Mixin function for ApiReturnTypeMixin. | |
Mixin function for ApiStaticMixin. | |
Mixin function for ApiTypeParameterListMixin. |
Interfaces
Interface | Description |
|---|---|
The mixin base class for API items that have an abstract modifier. | |
The mixin base class for API items that can be exported. | |
The mixin base class for API items that can have an initializer. | |
The mixin base class for API items that act as containers for other child items. | |
The mixin base class for API items that have a name. For example, a class has a name, but a class constructor does not. | |
The mixin base class for API items that can be marked as optional by appending a | |
The mixin base class for API items that can have function parameters (but not necessarily a return value). | |
The mixin base class for API items that can have the TypeScript | |
The mixin base class for API items that cannot be modified after instantiation. Examples such as the readonly modifier and only having a getter but no setter. | |
The mixin base class for API items that can be attributed with a TSDoc tag such as | |
The mixin base class for API items that are functions that return a value. | |
The mixin base class for API items that can have the TypeScript | |
The mixin base class for API items that can have type parameters. | |
Constructor options for ApiAbstractMixin. | |
Constructor options for ApiCallSignature. | |
Constructor options for ApiClass. | |
Constructor options for ApiConstructor. | |
Constructor options for ApiConstructor. | |
Constructor options for ApiDeclaredItem. | |
Constructor options for ApiDocumentedItem. | |
Constructor options for ApiEntryPoint. | |
Constructor options for ApiEnumMember. | |
Constructor options for ApiEnum. | |
Constructor options for IApiExportedMixinOptions. | |
Constructor options for ApiFunction. | |
Constructor options for ApiIndexSignature. | |
Constructor options for IApiInitializerMixinOptions. | |
Constructor options for ApiInterface. | |
This abstraction is used by the mixin pattern. It describes a class type that inherits from ApiItem. | |
Constructor options for ApiItemContainerMixin. | |
Constructor options for ApiItem. | |
Constructor options for ApiMethod. | |
Constructor options for IApiNameMixinOptions. | |
Constructor options for ApiClass. | |
Constructor options for IApiOptionalMixinOptions. | |
Constructor options for ApiPackage. | |
Options for ApiPackage.saveToJsonFile(). | |
Constructor options for ApiParameterListMixin. | |
Represents parameter information that is part of IApiParameterListMixinOptions | |
Constructor options for ApiPropertyItem. | |
Constructor options for ApiProperty. | |
Constructor options for ApiPropertySignature. | |
Constructor options for IApiProtectedMixinOptions. | |
Constructor options for ApiReadonlyMixin. | |
Constructor options for ApiReleaseTagMixin. | |
Constructor options for ApiReturnTypeMixin. | |
Constructor options for IApiStaticMixinOptions. | |
Constructor options for ApiTypeAlias. | |
Constructor options for ApiTypeParameterListMixin. | |
Represents parameter information that is part of IApiTypeParameterListMixinOptions | |
Constructor options for ApiVariable. | |
Used by Excerpt to indicate a range of indexes within an array of | |
This object is used for messages returned as part of | |
Generic result object for finding API items used by different kinds of find operations. | |
Constructor options for Parameter. | |
Result object for ApiModel.resolveDeclarationReference(). | |
Constructor options for | |
Constructor options for TypeParameter. |
Namespaces
Namespace | Description |
|---|---|
Static members for ApiAbstractMixin. | |
Static members for ApiExportedMixin. | |
Static members for ApiInitializerMixin. | |
Static members for ApiItemContainerMixin. | |
Static members for ApiNameMixin. | |
Optional members for ApiOptionalMixin. | |
Static members for ApiParameterListMixin. | |
Static members for ApiProtectedMixin. | |
Static members for ApiReadonlyMixin. | |
Static members for ApiReleaseTagMixin. | |
Static members for ApiReturnTypeMixin. | |
Static members for ApiStaticMixin. | |
Static members for ApiTypeParameterListMixin. | |
Helper functions for working with the |
Type Aliases
Type Alias | Description |
|---|---|
This abstraction is used by the mixin pattern. It describes a class constructor. | |
This abstraction is used by the mixin pattern. It describes the "static side" of a class. |