rescript-schema
rescript-schema copied to clipboard
S.merge TS example slightly incorrect
For https://github.com/DZakh/rescript-schema/blob/92f8e75d3e3003054c30e422da750fdc3b0abbe1/docs/js-usage.md#merge
The actual output is a TS intersection type:
Should fix the TS infer logic. Thanks 🫡
Fixed in the commit https://github.com/DZakh/rescript-schema/pull/109/commits/9d1e579a7ad5f6aeaefae050c3cd84d18acf50ad