Closed programever closed 2 months ago
Hey @programever, thanks for reporting! This is indeed a regression. I've fixed it in #1130. Could you run the following command locally to upgrade?
$ npm i https://pkg.pr.new/decoders@1130
If you can confirm this fixes your issue, I'll formally release this in 2.4.1 — thank you! 🙏
Hi @nvie,
Thank you very much for quick fix! All are working well at my end! 🙏
Description of the bug My tsconfig.json has
strict: true
, I have a union type of tagA | B | C
, I expect TSC error for decoder of invalid tagD
Expected behavior
taggedUnion
decoder for invalid tag should be TSC errorTo Reproduce
Temporary solution Use
either
OR Downgrade to2.1.0
Additional context Decoders version: 2.4.0 TypeScript version: 5.3.3 Flow version: Node version: 20.12.2