You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rechecked against main 844c32af. DOMException.t and its constructor now exist, but that does not settle this issue's question about interoperability with JavaScript/ReScript error types. Keeping this open until that contract is agreed and documented. The alpha binding fixes do not resolve the design question.
Activity
jderochervlk commentedon Nov 3, 2024
In TypeScript there isn't overlap between an
Errorand aDomExceptionso they should probably be different types in ReScript as well.nojaf commentedon Nov 3, 2024
That is not entirely true it seems: https://github.com/microsoft/TypeScript/blob/0ec4d30a6e2ebbc87292c9829378d4e98de8ef43/src/lib/dom.generated.d.ts#L6397-L6433
Although MDN does not seem to mention this.
jderochervlk commentedon Nov 8, 2026
Rechecked against main
844c32af. DOMException.t and its constructor now exist, but that does not settle this issue's question about interoperability with JavaScript/ReScript error types. Keeping this open until that contract is agreed and documented. The alpha binding fixes do not resolve the design question.