Skip to content

@unboxed should support Js.TypedArray2.ArrayBuffer.t #6757

Open
@htoooth

Description

@htoooth

I found that @unboxed supports many types, but it does not support ArrayBuffer or TypedArray.

@unboxed
type dataType = Bin(Js_typed_array2.ArrayBuffer.t) | Json(Js.Json.t) | Text(string)
@unboxed
type dataType = Bin(Js_typed_array2.Uint8Array.t) | Json(Js.Json.t) | Text(string)

However, ArrayBuffer or TypedArray is a type supported by JavaScript.

When I process with record, the JSON data type errors again.

@unboxed
type dataType = Bin({ val: Js_typed_array2.Uint8Array.t}) | Json(Js.Json.t) | Text(string)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions