UNPKG

@clickup/ent-framework

Version:

A PostgreSQL graph-database-alike library with microsharding and row-level security

15 lines 678 B
import type { EntClass } from "../types"; import type { VC } from "../VC"; import type { Predicate } from "./Predicate"; /** * Checks that an Ent available via a field can be deleted, or Ent doesn't exist * (e.g. Ent is orphaned). See CanReadOutgoingEdge comments for more details. */ export declare class CanDeleteOutgoingEdge<TField extends string> implements Predicate<Record<TField, string | null>> { readonly field: TField; readonly toEntClass: EntClass; readonly name: string; constructor(field: TField, toEntClass: EntClass); check(vc: VC, row: Record<TField, string | null>): Promise<boolean>; } //# sourceMappingURL=CanDeleteOutgoingEdge.d.ts.map