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

Parameter

Type

Description

namespaces

string | string[]

**Returns:**

(entity: Entity) => boolean