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