ServerMutatorDefs type
Home > @cbnsndwch/zero-contracts > ServerMutatorDefs
ServerMutatorDefs type
A mapping of server mutator definitions, organized by namespace or key.
Each entry can be either: - A single ServerMutatorImpl<TContext> instance, or - An object mapping string keys to ServerMutatorImpl<TContext> instances.
TContext - The context type that each mutator implementation will receive.
Signature:
type ServerMutatorDefs<TContext extends ServerMutatorContext> = {
[namespaceOrKey: string]:
| ServerMutatorImpl<TContext>
| {
[key: string]: ServerMutatorImpl<TContext>;
};
};References: ServerMutatorContext, ServerMutatorImpl
How was this page?