Function: defineMutators()
このコンテンツはまだ日本語訳がありません。
Function: defineMutators()
Section titled “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.
Type Parameters
Section titled “Type Parameters”S extends Record<string, AnyTable>
TCtx
Returns
Section titled “Returns”<M>(mutators) => M