Yes, exactly that, just add @as(undefined) to the undefined case and you’re good to go, it’ll be unrefined at runtime.
Off topic but related: https://github.com/zth/pgtyped-rescript/blob/rescript/RESCRIPT.md type safe SQL in Rescript.
Yes, exactly that, just add @as(undefined) to the undefined case and you’re good to go, it’ll be unrefined at runtime.
Off topic but related: https://github.com/zth/pgtyped-rescript/blob/rescript/RESCRIPT.md type safe SQL in Rescript.