isEntityWith()
Home > @backstage/plugin-catalog
> isEntityWith
For use in EntitySwitch.Case. Matches if the entity is the specified kind and type (if present).
Signature:
function isEntityWith(predicate: EntityPredicates): (entity: Entity) => boolean;
Parameters
Parameter |
Type |
Description |
---|---|---|
predicate |
(entity: Entity) => boolean