WingNews logo WingNews
top | new | best | ask | show | jobs
top | item 20063308

(no title)

mikeyhew | 6 years ago

Does it typecheck queries for you based on the schema, and generate a response type for TypeScript?

discuss

order

smusumeche|6 years ago

No, but you can do something like this: https://formidable.com/blog/2019/strong-typing/

mikeyhew|6 years ago

Oh cool, they have a package for urql: https://graphql-code-generator.com/docs/plugins/typescript-u...

I might try it out once it supports the new hooks.

powered by hn/api // news.ycombinator.com