Skip to main content

BackstagePlugin

Home > @backstage/core-plugin-api > BackstagePlugin

Plugin type.

Signature:

export type BackstagePlugin<Routes extends AnyRoutes = {}, ExternalRoutes extends AnyExternalRoutes = {}, _Ignored extends {} = {}> = {
getId(): string;
getApis(): Iterable<AnyApiFactory>;
getFeatureFlags(): Iterable<PluginFeatureFlagConfig>;
provide<T>(extension: Extension<T>): T;
routes: Routes;
externalRoutes: ExternalRoutes;
};

References: AnyRoutes, AnyExternalRoutes, AnyApiFactory, PluginFeatureFlagConfig, Extension