Skip to main content
Version: Next

convertLegacyRouteRef()

Home > @backstage/core-compat-api > convertLegacyRouteRef

A temporary helper to convert a new route ref to the legacy system.

Signature:

function convertLegacyRouteRef<TParams extends AnyRouteRefParams>(ref: RouteRef<TParams>): LegacyRouteRef<TParams>;

Parameters

ParameterTypeDescription
refRouteRef<TParams>

Returns:

LegacyRouteRef<TParams>

Remarks

In the future the legacy createRouteRef will instead create refs compatible with both systems.