-
Notifications
You must be signed in to change notification settings - Fork 145
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
With the most recent version of TypeScript, there was a change to make the type of Uint8Array such that the buffer can be either ArrayBuffer or SharedArrayBuffer. While controversial, it seems as though this change will stick. Thus, to minimize burden on usages of this package and from a cursory look at the implementation, it seems as though we should change our usages of Uint8Array to Uint8Array<ArrayBuffer>.
To Reproduce
Steps to reproduce the behavior:
See how this causes a type error in TypeScript 5.9+
message Test {
bytes test = 1;
}const response = await rpcClient.method(...);
new Blob([response.response.test]); // type errorExpected behavior
Should not have a type error
Environment:
- TypeScript 5.9+
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working