Skip to content

refactor: use Schema.TaggedStruct for discriminated unions#25

Merged
ryanbas21 merged 1 commit into
mainfrom
refactor/tagged-struct
May 12, 2026
Merged

refactor: use Schema.TaggedStruct for discriminated unions#25
ryanbas21 merged 1 commit into
mainfrom
refactor/tagged-struct

Conversation

@ryanbas21
Copy link
Copy Markdown
Owner

@ryanbas21 ryanbas21 commented May 12, 2026

Summary

  • Convert 10 Schema.Struct with _tag literal fields to Schema.TaggedStruct
  • Resolves all TS34 Effect Language Service warnings
  • Enables optimized union decoding (tag lookup instead of sequential branch matching)

Test plan

  • pnpm build passes with no TS34 warnings
  • pnpm test passes

🤖 Generated with Claude Code

Replace Schema.Struct with _tag literal fields with
Schema.TaggedStruct, the idiomatic Effect pattern for
discriminated unions. Silences TS34 language service warnings
and enables optimized union decoding.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ryanbas21 ryanbas21 merged commit a30cdcd into main May 12, 2026
1 check passed
@ryanbas21 ryanbas21 deleted the refactor/tagged-struct branch May 12, 2026 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant