@cbnsndwch/zero-sources

ServerMutatorImpl type

Home > @cbnsndwch/zero-contracts > ServerMutatorImpl

ServerMutatorImpl type

Represents a server-side mutator function implementation.

TContext - The type of the context object expected by the mutator. TArgs - The type of the arguments expected by the mutator. Defaults to any.

Signature:

type ServerMutatorImpl<TContext extends ServerMutatorContext, TArgs = any> = {
    (context: TContext, args: TArgs): Promise<void>;
};

References: ServerMutatorContext

How was this page?