adding typescript on next code example Example: next with typescript yarn add --dev typescript @types/react @types/node