Skip to content

v0.0.2

Choose a tag to compare

@yamcodes yamcodes released this 25 Jan 22:17
· 1952 commits to main since this release
aab3083

Patch Changes

  • Add host and port utility types e41bf8e @yamcodes

    We're adding utility types with this feature, the first are host and port.

    host: An IP address or localhost

    port: A string that can be parsed into a number between 0 and 65535

  • TypeScript inference f9297e0 @yamcodes

    ** ark.env now 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.