Skip to main content
Version: Next

isOrCriteria()

Home > @backstage/plugin-permission-node > isOrCriteria

Utility function used to parse a PermissionCriteria of type

Signature:

isOrCriteria: <T>(criteria: PermissionCriteria<T>) => criteria is AnyOfCriteria<T>

Parameters

Parameter

Type

Description

criteria

PermissionCriteria<T>

a PermissionCriteria

**Returns:**

criteria is AnyOfCriteria<T>

true if the permission criteria is of type anyOf, narrowing down criteria to the specific type.