ts-belt
ts-belt copied to clipboard
fix: match Result's type to its compiled output
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