Skip to content

Add env-assert-typed to Validation - #1189

Closed
Yearnless wants to merge 1 commit into
sorrycc:masterfrom
Yearnless:add-env-assert-typed
Closed

Yearnless wants to merge 1 commit into
sorrycc:masterfrom
Yearnless:add-env-assert-typed

Conversation

@Yearnless

Copy link
Copy Markdown

env-assert-typed — Zero-dependency typed environment variable parser
with automatic TypeScript inference.

  • Discriminated union schema → compile-time errors on mismatched default/choices
  • Automatic inference: required → T, default → T, optional → T | undefined
  • coerce, refine, transform, secret, factory defaults
  • Compile-time rejection of default: undefined and type mismatches
  • 528B gzip, zero dependencies
  • Full TypeScript inference with @ts-expect-error test coverage

@gokaygurcan

Copy link
Copy Markdown
Collaborator

/insert i'm tired boss meme here

Repository owner locked and limited conversation to collaborators Oct 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants