Nice! I'm working on migrating my Gatsby blog to Typescript as well since I have created a couple of quite complex components which I tend to break every other day. Next steps for me are extracting the theme to its own repository or submodule and starting to write posts in MDX (Markdown + JSX). ❤️
Can you share the steps you took to get types right with Apollo? Would be really helpful.
Nice! I'm working on migrating my Gatsby blog to Typescript as well since I have created a couple of quite complex components which I tend to break every other day. Next steps for me are extracting the theme to its own repository or submodule and starting to write posts in MDX (Markdown + JSX). ❤️
Can you share the steps you took to get types right with Apollo? Would be really helpful.
Hi! To make it work with Apollo it's pretty easy actually:
apollodevDependency and create the scriptgenerate-typesin your package.jsonyarn generate-types, and voilà!The types will be generated into src/types folder :)