Reference / @getenginex/sdk/query / MutationsOf
MutationsOf<Api, K>
MutationsOf<
Api,K> ={ readonly [M in K]: MutationFactory<Api[M]> }
Mutation factories of a namespace (Api) for the methods K.
Type Parameters
Api
Api
K
K extends keyof Api
Example
ts
type PixKeysMutations = MutationsOf<PixKeysApi, 'add' | 'remove'>