Skip to main content
Version: v10.0.0

DescribeMutations


Import
import { DescribeMutations } from "@hyper-fetch/db"

Preview​

type DescribeMutations<Input,Row,InsertReq,UpdateReq,DeleteReq> = (IsGiven<InsertReq> extends true ? { insert: Input } : {}) & (IsGiven<UpdateReq> extends true ? { update: PayloadChanges<Row, UpdateReq> } : {}) & (IsGiven<DeleteReq> extends true ? { delete: true } : {});