Correct way to write middleware in Typescript
rem-code-s opened this issue · 2 comments
rem-code-s commented
Hi, i'm trying to set up a project with react, typescript and graphql-yoga. Is there any way to get the types for the middleware?
const isLoggedIn = async (resolve: any, parent: any, args: any, ctx: any, info: any)
I would like to specify the types..
Koshkens commented
saihaj commented
Hey @RAW4RMCS @Koshkens we @the-guild-org are the new maintainers of this project. We are actively developing v2
. We built it ground up and it uses typescript, so it should have better support. Would love to get your feedback on beta release @graphql-yoga/node@beta
https://www.graphql-yoga.com!