jacob-alford / schemata-ts

An all-inclusive schema engine featuring schemata inspired by io-ts and validators.js. Written for TypeScript with fp-ts
https://schemata.jacob-alford.dev/
MIT License
33 stars 1 forks source link

fix: downstream type inference for Float/Int schemas #311

Closed jacob-alford closed 9 months ago

jacob-alford commented 9 months ago

This is necessary because of an issue with type-inference for downstream buildable libraries which emit .dts. Without exporting these brands, TypeScript can't know what the underlying types are. This became an issue introducing the type alias for float / int default values. Changing that to an interface also fixes the issue, but Opaque from type-fest is a type-alias and hence cannot be upstream to an interface.

coveralls commented 9 months ago

Pull Request Test Coverage Report for Build 7036745337


Totals Coverage Status
Change from base Build 6805819319: 0.0%
Covered Lines: 2597
Relevant Lines: 2597

💛 - Coveralls