diff --git a/packages/casl-ability/extra/extra.d.ts b/packages/casl-ability/extra/extra.d.ts index 10ef83d48..e343009dc 100644 --- a/packages/casl-ability/extra/extra.d.ts +++ b/packages/casl-ability/extra/extra.d.ts @@ -2,6 +2,8 @@ import { Ability, Rule, RawRule } from '@casl/ability' export function rulesToQuery(ability: Ability, action: string, subject: any, convert: (rule: Rule) => Object): Object | null +export function rulesToFields(ability: Ability, action: string, subject: any): Object + export interface PermittedFieldsOptions { fieldsFrom?: (rule: Rule) => string[] | null | undefined }