Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

constants.ts

9 lines353 Bytes

1export const mutationFunctions = ['useMutation'] as const
2​
3export type MutationFunctions = (typeof mutationFunctions)[number]
4​
5export const checkedProperties = ['onMutate', 'onError', 'onSettled'] as const
6​
7export type MutationProperties = (typeof checkedProperties)[number]
8​
9export const sortRules = [[['onMutate'], ['onError', 'onSettled']]] as const