Skip to main content
Version: Next

isPermission()

Home > @backstage/plugin-permission-common > isPermission

Check if the two parameters are equivalent permissions.

Signature:

function isPermission<T extends Permission>(permission: Permission, comparedPermission: T): permission is T;

Parameters

Parameter

Type

Description

permission

Permission

comparedPermission

T

**Returns:**

permission is T