As a JS user, I want to be able to pass Array<Number>, Blob, or ArrayBuffer for blobs
Open
@chenyan-dfinity is already working on this.
Since Jan 5, 2022.
enhancement
JavaScript
- Dominant language
- Rust
- Stars
- 301
- Forks
- 85
- Avg merge
- 1h 4m
- Merged PRs (30d)
- 4
Description
We currently type the blob type as specifically an Array of numbers, which feels silly in contexts where we are working with Blobs and ArrayBuffers.
Instead, the types allowed should include Blob and ArrayBuffer, and we should add support in the JS Agent for accepting those compatible values and encoding them appropriately.
Acceptance criteria:
- Blobs can accept
Array<Number> | Blob | ArrayBufferin TS Codegen
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.