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

ParameterTypeDescription
typesstring | string[]

Returns:

(entity: Entity) => boolean