You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeReturnType<Textends(...args: any[])=>any>=Textends(...args: any[])=> infer R ? R : any;
to get the return type of all our dataloaders.
and give it a name. Then we can do a declare of some sort for a resolver to attach that as context where we use it in the params.
The text was updated successfully, but these errors were encountered:
orta
changed the title
Use TypeScript 2.8's inferred types to make the dataloadesr autocomplete
Use TypeScript 2.8's inferred types to make the dataloaders autocomplete
Apr 10, 2018
We can use
to get the return type of all our dataloaders.
and give it a name. Then we can do a declare of some sort for a resolver to attach that as context where we use it in the params.
The text was updated successfully, but these errors were encountered: