mobily / ts-belt

🔧 Fast, modern, and practical utility library for FP in TypeScript.
https://mobily.github.io/ts-belt
MIT License
1.08k stars 30 forks source link

fix: match Result's type to its compiled output #111

Open JUSTIVE opened 5 months ago

JUSTIVE commented 5 months ago

currently, the type of Result in ts-belt has __ field, which is supposed to be 'Ok' | 'Error' for identifying its subtype. but the structure of the build output from the rescript compiler doesn't have those fields. This PR resolves these mismatches, as not so confuse developers who try to access __ field