Skip to main content

MergeParams

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

Warning: This API is now obsolete.

this type is deprecated and will be removed in the future

Merges a param object type with an optional params type into a params object.

Signature:

export type MergeParams<P1 extends {
[param in string]: string;
}, P2 extends AnyParams> = (P1[keyof P1] extends never ? {} : P1) & (P2 extends undefined ? {} : P2);

References: AnyParams