@clickup/ent-framework
Version:
A PostgreSQL graph-database-alike library with microsharding and row-level security
16 lines • 654 B
TypeScript
import type { VC } from "../VC";
import type { RuleResult } from "./Rule";
import { Rule } from "./Rule";
/**
* Returns DENY if the predicate succeeds, otherwise SKIP.
* - Used mostly to early block some read/write access.
* - EntAccessError exception will be treated as a DENY signal (so it will abort
* processing immediately).
* - This rule may still throw an exception if the exception is a wild one (not
* derived from EntAccessError).
*/
export declare class DenyIf<TInput extends object> extends Rule<TInput> {
readonly _TAG: "DenyIf";
evaluate(vc: VC, input: TInput): Promise<RuleResult>;
}
//# sourceMappingURL=DenyIf.d.ts.map