Type Alias PolicyConfigCommitFunction<CommitParams, CommitAllowResult, CommitDenyResult>
Type Parameters
- CommitParams extends z.ZodType = z.ZodUndefined
- CommitAllowResult extends z.ZodType = z.ZodUndefined
- CommitDenyResult extends z.ZodType = z.ZodUndefined
Unlike
evaluate()
andprecheck()
, commit receives specific arguments provided by the ability during itsexecute()
phase instead of thanabilityParams
anduserParams
that the ability was called with.