Skip to main content
Version: Next

createConditionTransformer

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

A higher-order helper function which accepts an array of PermissionRules, and returns a ConditionTransformer which transforms input conditions into equivalent plugin-specific query fragments using the supplied rules.

Signature:

createConditionTransformer: <TQuery, TRules extends PermissionRule<any, TQuery, string>[]>(permissionRules: [...TRules]) => ConditionTransformer<TQuery>