We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to model blobParts of https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob#blobparts for the new WebAPI bindings.
blobParts
@unboxed type blobPart = | String(string) | Blob(blob) | ArrayBuffer(ArrayBuffer.t) | TypedArray(TypedArray.t<int>)
However, I cannot use ArrayBuffer.t and TypedArray.t in combination with the @unboxed. Could some of these be extended?
ArrayBuffer.t
TypedArray.t
@unboxed
The text was updated successfully, but these errors were encountered:
I'm hitting the limitations of @unboxed again for https://github.com/rescript-lang/experimental-rescript-webapi/pull/7/files#r1839785692
Modelling https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillStyle
It should be something like
@unboxed type fillStyle = | String(string) | Gradient(canvasGradient) | Pattern(canvasPattern)
It would be great if I can input some sort of check for the unboxed via attribute, something like:
| @check("$0 instanceof CanvasGradient") Gradient(canvasGradient) // where $0 is the object in place.
| @check("$0 instanceof CanvasGradient") Gradient(canvasGradient)
Sorry, something went wrong.
No branches or pull requests
I'm trying to model
blobParts
of https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob#blobparts for the new WebAPI bindings.However, I cannot use
ArrayBuffer.t
andTypedArray.t
in combination with the@unboxed
.Could some of these be extended?
The text was updated successfully, but these errors were encountered: