docs: add changeset and api-report for submission
Signed-off-by: Tim Klever <tim.v.klever@aexp.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-catalog-react': minor
|
||||
---
|
||||
|
||||
`entityRouteParams` now also accepts entity refs, and can help with encoding the resulting parameters.
|
||||
@@ -524,12 +524,20 @@ export interface EntityRefPresentationSnapshot {
|
||||
}
|
||||
|
||||
// @public
|
||||
export function entityRouteParams(entity: Entity): {
|
||||
export function entityRouteParams(
|
||||
entityOrRef: Entity | CompoundEntityRef | string,
|
||||
options?: EntityRouteParamsOptions,
|
||||
): {
|
||||
readonly kind: string;
|
||||
readonly namespace: string;
|
||||
readonly name: string;
|
||||
};
|
||||
|
||||
// @public
|
||||
export type EntityRouteParamsOptions = {
|
||||
encodeParams?: boolean;
|
||||
};
|
||||
|
||||
// @public
|
||||
export const entityRouteRef: RouteRef<{
|
||||
name: string;
|
||||
|
||||
Reference in New Issue
Block a user