This version (v0.7) has not been published to npm yet.
Skip to content

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'>