Reference / @getenginex/sdk/query / IdempotentMutationsOf
IdempotentMutationsOf<Api, K>
IdempotentMutationsOf<
Api,K> ={ readonly [M in K]: IdempotentMutationFactory<Api[M]> }
Mutation factories of a namespace (Api) for the idempotent methods K (they accept { idempotencyKey }).
Type Parameters
Api
Api
K
K extends keyof Api
Example
ts
type DepositsMutations = IdempotentMutationsOf<DepositsApi, 'createPix'>