Skip to main content

isApiType()

Home > @backstage/plugin-catalog > isApiType

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

Signature:

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

Parameters

ParameterTypeDescription
typesstring | string[]

Returns:

(entity: Entity) => boolean