Thanks to visit codestin.com
Credit goes to github.com

Skip to content

homoky/znv

 
 

Repository files navigation

@homoky/znv

This is a modified version of znv that resolves issue #12.

Differences from version 0.4.0

  • Fixes the TypeScript error:
    "The inferred type cannot be named without a reference to '../node_modules/znv/dist/util'."
    • This issue affected all parsed environment variables and was caused by missing explicit exports in znv, preventing TypeScript from correctly resolving types.
    • The fix was adding explicit exports for DeepReadonly, DeepReadonlyArray, DeepReadonlyObject, and assertNever in index.ts:
      export type {
        DeepReadonly,
        DeepReadonlyArray,
        DeepReadonlyObject,
        assertNever,
      } from "./util.js";
    • This ensures proper type resolution and avoids import errors.

For more details, see the original issue: #12.

About

Type-safe environment parsing and validation for Node.js with Zod schemas

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.5%
  • JavaScript 0.5%