Skip to main content

ConditionTransformer

Home > @backstage/plugin-permission-node > ConditionTransformer

A function which accepts PermissionConditions logically grouped in a PermissionCriteria object, and transforms the PermissionConditions into plugin specific query fragments while retaining the enclosing criteria shape.

Signature:

export type ConditionTransformer<TQuery> = (conditions: PermissionCriteria<PermissionCondition>) => PermissionCriteria<TQuery>;

References: PermissionCriteria, PermissionCondition