コンテンツにスキップ

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.

S extends Record<string, AnyTable>

TCtx

TArgs

MutatorManifest

StandardSchemaV1<unknown, TArgs>

MutatorFn<S, TCtx, TArgs>

MutatorObject<S, TCtx, TArgs> & { manifest: MutatorManifest; }