isNamespace()
Home > @backstage/plugin-catalog
> isNamespace
For use in EntitySwitch.Case. Matches if the entity is in a given namespace.
Signature:
function isNamespace(namespaces: string | string[]): (entity: Entity) => boolean;
Parameters
Parameter |
Type |
Description |
---|---|---|
namespaces |
string | string[] |
(entity: Entity) => boolean