Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct way to write middleware in Typescript #617

Closed
rem-code-s opened this issue Jan 31, 2020 · 2 comments
Closed

Correct way to write middleware in Typescript #617

rem-code-s opened this issue Jan 31, 2020 · 2 comments

Comments

@rem-code-s
Copy link

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
Copy link

Koshkens commented Oct 5, 2020

@saihaj saihaj mentioned this issue Dec 5, 2021
32 tasks
@saihaj
Copy link
Collaborator

saihaj commented Feb 19, 2022

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!

@saihaj saihaj closed this as completed Feb 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants