Skip to main content

PathParams

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

Warning: This API is now obsolete.

this type is deprecated and will be removed in the future

This utility type helps us infer a Param object type from a string path For example, /foo/:bar/:baz inferred to { bar: string, baz: string }

Signature:

export type PathParams<S extends string> = {
[name in ParamNames<S>]: string;
};

References: ParamNames