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 | ||
comparedPermission |
T |
permission is T