gatsby-typescript
An alternative to the official typescript plugin, with & automatic type generation for your graphql queries (using graphql-code-generator ) yarn add typescript gatsby-plugin-ts Add this to your gatsby config like any other plugins: Unlike the official plugin, you'd have to bring your own tsconfig.json.
https://www.gatsbyjs.com/plugins/gatsby-typescript/