Video yükleniyor...
Video Yüklenemedi
⚡️ Pro Tip: Supercharge process.env with TypeScript! Unlock the power of typed .env files and enjoy seamless code completion in TypeScript. 😱 All you need is a simple environment.d.ts with a few lines of code 👇
11,555 görüntüleme • 1 yıl önce •via X (Twitter)
8 Yorum

The Solomon1 yıl önce
You still have to declare it at two places though. 😅

ahmed1 yıl önce
Nice but I think it's better to use zod to validate at runtime + have type safery.

Antonio Passarelli1 yıl önce
works on WebStorm as well 😍 nice one!!!

Shelton Louis1 yıl önce
Or you could use this!

Denis1 yıl önce
I am using zod, but will give it a try 👍

Maurice Wipf1 yıl önce
Great, thanks a lot!

Enoch Klu1 yıl önce
This is a great tip! But why does adding `export {}` enable the code completion?

an lê xuân1 yıl önce
Is there any same thing with Golang
