v0.0.2
Patch Changes
-
Add
hostandportutility typese41bf8e@yamcodesWe're adding utility types with this feature, the first are
hostandport.host: An IP address orlocalhostport: Astringthat can be parsed into anumberbetween 0 and 65535 -
TypeScript inference
f9297e0@yamcodes**
ark.envnow supports TypeScript inference** - check out this quick example:const { HOST } = defineEnv({ HOST: "string.ip", }); console.log(HOST); // <-- the type is "string"!
The above program will error out if the environment variable is set to anything other than a valid IP address.