Skip to main content

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

ParameterTypeDescription
namespacesstring | string[]

Returns:

(entity: Entity) => boolean