Skip to content

Preparer

Preparer<R> = (values, context) => Partial<R> | Promise<Partial<R>>

Defined in: packages/schema/src/prepare.ts:34

Fills in or rewrites a create’s or update’s values before they are written, inside the write’s transaction: it gets the values as validated and returns the values to write. It throws a FieldIssue to refuse the write.

R

Partial<R>

PrepareContext<R>

Partial<R> | Promise<Partial<R>>