3 ms·
Rather than declaring it yourself every time, there is an @types/node you can install with all of the Node-specific types including process.env: https://www.np
by WorldMaker 5y ago
Rather than declaring it yourself every time, there is an @types/node you can install with all of the Node-specific types including process.env:
https://www.npmjs.com/package/@types/node https://www.npmjs.com/package/@types/node
(ETA: It's mentioned in the StackOverflow and they still add an extra definition on top of it, but the env in the types today is a Record and you don't have to do it, you just won't get auto-completion on the names.)