Skip to main content

isResourceType()

Home > @backstage/plugin-catalog > isResourceType

For use in EntitySwitch.Case. Matches if the entity is a Resource of a given spec.type.

Signature:

function isResourceType(types: string | string[]): (entity: Entity) => boolean;

Parameters

Parameter

Type

Description

types

string | string[]

**Returns:**

(entity: Entity) => boolean