Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

⚡️ 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 Solomon profil fotoğrafı
The Solomon1 yıl önce

You still have to declare it at two places though. 😅

ahmed profil fotoğrafı
ahmed1 yıl önce

Nice but I think it's better to use zod to validate at runtime + have type safery.

Antonio Passarelli profil fotoğrafı
Antonio Passarelli1 yıl önce

works on WebStorm as well 😍 nice one!!!

Shelton Louis profil fotoğrafı
Shelton Louis1 yıl önce

Or you could use this!

Denis profil fotoğrafı
Denis1 yıl önce

I am using zod, but will give it a try 👍

Maurice Wipf profil fotoğrafı
Maurice Wipf1 yıl önce

Great, thanks a lot!

Enoch Klu profil fotoğrafı
Enoch Klu1 yıl önce

This is a great tip! But why does adding `export {}` enable the code completion?

an lê xuân profil fotoğrafı
an lê xuân1 yıl önce

Is there any same thing with Golang

Benzer Videolar