Skip to main content
Version: Next

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

Parameter

Type

Description

types

string | string[]

**Returns:**

(entity: Entity) => boolean