Condition
Home > @backstage/plugin-permission-node
> Condition
A utility type for mapping a single PermissionRule to its corresponding PermissionCondition.
Signature:
export type Condition<TRule> = TRule extends PermissionRule<any, any, infer TResourceType, infer TParams> ? undefined extends TParams ? () => PermissionCondition<TResourceType, TParams> : (params: TParams) => PermissionCondition<TResourceType, TParams> : never;
References: PermissionRule, PermissionCondition