Skip to content

Function: defineMutators()

defineMutators<S, TCtx>(): <M>(mutators) => M

Defined in: core/src/mutators.ts:107

Identity function that both anchors the type parameters (schema + ctx) and gives the record a nominal binding so tooling can find “the mutators of this app”. Returns the record unchanged so both client and server pick it up.

S extends Record<string, AnyTable>

TCtx

<M>(mutators) => M