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[] |
(entity: Entity) => boolean