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.
Type Parameters
Section titled “Type Parameters”R
Parameters
Section titled “Parameters”values
Section titled “values”Partial<R>
context
Section titled “context”Returns
Section titled “Returns”Partial<R> | Promise<Partial<R>>