Function: defineMutator()
Function: defineMutator()
Section titled “Function: defineMutator()”defineMutator<
S,TCtx,TArgs>(config):MutatorObject<S,TCtx,TArgs> & {manifest:MutatorManifest; }
Defined in: core/src/mutators.ts:148
Define one object-form mutator with a required static manifest. The
plural defineMutators() registry remains an identity wrapper for
backwards compatibility; this helper gives new migration-aware mutators
a compact, tool-discoverable shape.
Type Parameters
Section titled “Type Parameters”S extends Record<string, AnyTable>
TCtx
TArgs
Parameters
Section titled “Parameters”config
Section titled “config”manifest
Section titled “manifest”StandardSchemaV1<unknown, TArgs>
MutatorFn<S, TCtx, TArgs>
Returns
Section titled “Returns”MutatorObject<S, TCtx, TArgs> & { manifest: MutatorManifest; }