Solving type safety for .env variables

Using comments to type environment variables in .env files

Why?

Maybe you know how hard it is to manage your environment variables, especially in a type-safe way.

Current Solution

You could solve it simply enough with a javascript library like t3-env, or one you write yourself.

New solution

But, like, what if you just put, like, jsdoc types in your .env files. Then, you could parse out a type declaration or zod schema that your environment variables have to respect.