Skip to main content
Version: Next

isNotCriteria()

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

Utility function used to parse a PermissionCriteria

Signature:

isNotCriteria: <T>(criteria: PermissionCriteria<T>) => criteria is NotCriteria<T>

Parameters

Parameter

Type

Description

criteria

PermissionCriteria<T>

a PermissionCriteria

**Returns:**

criteria is NotCriteria<T>

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