I have this type: QueryResolvers['user']
I need some help to type this function:
const objectHandler = fn => (parent, args, context, info) => Promose
.resolve(fn(parent, args, context, info))
.catch(handleErrors)
fn is of type QueryResolvers['user']
the arguments (parent, args, context, info) are the same like the arguments of QueryResolvers['user']`