MutationResultKey type

Fields of T that a mutation result includes because TInput supplies an eligible value for them (see EligibleMutationValue).

type MutationResultKey<T, TInput> = {
  [K in keyof T]-?: K extends keyof TInput
    ? [EligibleMutationValue<TInput[K]>] extends [never]
      ? never
      : K
    : never
}[keyof T]