createPermissionRule()
Home > @backstage/plugin-permission-node
> createPermissionRule
Helper function to ensure that PermissionRule definitions are typed correctly.
Signature:
createPermissionRule: <TResource, TQuery, TResourceType extends string, TParams extends PermissionRuleParams = undefined>(rule: PermissionRule<TResource, TQuery, TResourceType, TParams>) => PermissionRule<TResource, TQuery, TResourceType, TParams>
Parameters
Parameter |
Type |
Description |
---|---|---|
rule |
PermissionRule<TResource, TQuery, TResourceType, TParams> |
PermissionRule<TResource, TQuery, TResourceType, TParams>