IPluginManifest Interface
The manifest for an API Documenter plugin.
Type
typescript
export interface IPluginManifestexport interface IPluginManifestDetails
An API documenter plugin is an NPM package. By convention, the NPM package name should have the prefix doc-plugin-. Its main entry point should export an object named protslDocPluginManifest which implements the IPluginManifest interface.
Examples
ts
class MyMarkdownDocumenter extends MarkdownDocumenterFeature {
public onInitialized(): void {
console.log('MyMarkdownDocumenter: onInitialized()');
}
}
export const protslDocPluginManifest: IPluginManifest = {
manifestVersion: 1000,
features: [
{
featureName: 'my-markdown-documenter',
kind: 'MarkdownDocumenterFeature',
subclass: MyMarkdownDocumenter,
},
],
};class MyMarkdownDocumenter extends MarkdownDocumenterFeature {
public onInitialized(): void {
console.log('MyMarkdownDocumenter: onInitialized()');
}
}
export const protslDocPluginManifest: IPluginManifest = {
manifestVersion: 1000,
features: [
{
featureName: 'my-markdown-documenter',
kind: 'MarkdownDocumenterFeature',
subclass: MyMarkdownDocumenter,
},
],
};Properties
The list of features provided by this plugin.
manifestVersion1000The manifest version number. For now, this must always be
1000.