ExtractMutatorKeys type
Home > @cbnsndwch/zero-contracts > ExtractMutatorKeys
ExtractMutatorKeys type
Signature:
type ExtractMutatorKeys<
TContext extends ServerMutatorContext,
Mutators extends ServerMutatorDefs<TContext>
> = {
readonly [K in keyof Mutators]: Mutators[K] extends ServerMutatorImpl<TContext>
? K & string
: keyof Mutators[K] extends string
? `${K & string}|${keyof Mutators[K] & string}`
: never;
}[keyof Mutators];References: ServerMutatorContext, ServerMutatorDefs, ServerMutatorImpl
How was this page?