ts-belt icon indicating copy to clipboard operation
ts-belt copied to clipboard

fix: match Result's type to its compiled output

Open JUSTIVE opened this issue 3 months ago • 0 comments

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

JUSTIVE avatar Mar 11 '24 09:03 JUSTIVE