Check out example codes for "how to install gatsby with typescript". It will help you in understanding the concepts better.

Code Example 1

# Install this on the current gatsby project
npm install gatsby-plugin-typescript & npm install typescript --save-dev
# Yarn
yarn add gatsby-plugin-typescript & yarn add typescript --dev

# gatsby-config.js
module.exports = {
  plugins: [


Learn ReactJs, React Native from