You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fs' readFile incompatible with TypeScript 5.9.2 #2914
TypeScript 5.9.2 changed the default behavior of BufferSource in lib.dom.d.ts. Now, instead of accepting type BufferSource = ArrayBufferView | ArrayBuffer;, it accepts type BufferSource = ArrayBufferView<ArrayBuffer> | ArrayBuffer;. This manifests when attempting to use the result of a readFile call to construct a File:
Type 'Uint8Array<ArrayBufferLike>' is not assignable to type 'BlobPart'.
Type 'Uint8Array<ArrayBufferLike>' is not assignable to type 'ArrayBufferView<ArrayBuffer>'.
Types of property 'buffer' are incompatible.
Type 'ArrayBufferLike' is not assignable to type 'ArrayBuffer'.
Type 'SharedArrayBuffer' is not assignable to type 'ArrayBuffer'.
Types of property '[Symbol.toStringTag]' are incompatible.
Type '"SharedArrayBuffer"' is not assignable to type '"ArrayBuffer"'.
Activity
fix: Specify Generic for readFile ArrayBuffer (fix tauri-apps#2914) (t…