TypeScript Next.js 实例
此示例展示了在 Next.js 中使用 TypeScript。
如何使用?
使用 create-next-app
使用 create-next-app 初始化示例:
npm init next-app --example with-typescript-app
# or
yarn create next-app --example with-typescript-app
手动下载
下载示例:
curl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/with-typescript
cd with-typescript
cbt-master.zip
预估大小:57个文件
cbt-master
文件夹
firestore.indexes.json
44B
package.json
3KB
.prettierrc
115B
firebase.json
44B
package-lock.json
832KB
.env.example
218B
src
文件夹
app
文件夹
next.config.js
404B
...
453.3KB
文件大小:
评论区