next js typescript types code example
Example 1: next with typescript
yarn add --dev typescript @types/react @types/node
Example 2: next js typescript
// create a tsconfig
touch tsconfig.json
// run command `npm run dev`
npm run dev
yarn add --dev typescript @types/react @types/node
// create a tsconfig
touch tsconfig.json
// run command `npm run dev`
npm run dev