Next/typescript導入

直下にtsconfig.jsonファイル作成

yarn add --dev typescript @types/react @types/node

.jsを.tsxに変更

yarn dev