createPermission()
Home > @backstage/plugin-permission-common
> createPermission
Utility function for creating a valid BasicPermission.
Signature:
function createPermission(input: {
name: string;
attributes: PermissionAttributes;
}): BasicPermission;
Parameters
Parameter |
Type |
Description |
---|---|---|
input |
{ name: string; attributes: PermissionAttributes; } |