Skip to main content

AppRouteBinder

Home > @backstage/core-app-api > AppRouteBinder

A function that can bind from external routes of a given plugin, to concrete routes of other plugins. See createSpecializedApp().

Signature:

export type AppRouteBinder = <ExternalRoutes extends {
[name: string]: ExternalRouteRef;
}>(externalRoutes: ExternalRoutes, targetRoutes: PartialKeys<TargetRouteMap<ExternalRoutes>, KeysWithType<ExternalRoutes, ExternalRouteRef<any, true>>>) => void;

References: ExternalRouteRef