📌  相关文章
📜  如何使用 typescript 安装 gatsby - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:11.308000             🧑  作者: Mango

代码示例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: [
    `gatsby-plugin-typescript`,
  ],
}

# https://medium.com/@stojanpeshov/how-to-setup-gatsbyjs-starter-with-typescript-eslint-prettier-269b1a0a812f