Skip to main content
Version: Next

ParamKeys

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

Warning: This API is now obsolete.

this type is deprecated and will be removed in the future

Type describing the key type of a route parameter mapping.

Signature:

export type ParamKeys<Params extends AnyParams> = [AnyRouteRefParams] extends [
Params
] ? string[] : keyof Params extends never ? [] : Array<keyof Params>;

References: AnyParams, AnyRouteRefParams