We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc3f7ff commit d0cab6fCopy full SHA for d0cab6f
src/fs_mem.ts
@@ -476,13 +476,13 @@ export class File extends Inode {
476
readonly: boolean;
477
478
constructor(
479
- data: ArrayBuffer | SharedArrayBuffer | Uint8Array | Array<number>,
+ data: ArrayBufferLike | ArrayLike<number>,
480
options?: Partial<{
481
482
}>,
483
) {
484
super();
485
- this.data = new Uint8Array(data);
+ this.data = new Uint8Array(data as ArrayLike<number>);
486
this.readonly = !!options?.readonly;
487
}
488
0 commit comments