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
Parameter |
Type |
Description |
---|---|---|
ref |
RouteRef<TParams> |
LegacyRouteRef<TParams>
Remarks
In the future the legacy createRouteRef will instead create refs compatible with both systems.