Consider the following code:
const {
mutate: storeData,
} = useMutation(...) // useMutation from @vue/apollo-composable
const sendForm = handleSubmit(async (values) => {
try {
const result = await storeData()
console.log(result)
} catch (e) { // <---- what is the TypeScript type of e?
...
}
})
I want to annotate the e parameter of catch(e) with its TypeScript type - but which type is it? If you know the solution, if possible also explain how I could have figured that out myself, thanks!