Skip to content

fix: Specify Generic for readFile ArrayBuffer (fix #2914) - #2915

Merged
Legend-Master merged 2 commits into
tauri-apps:v2from
samhinshaw:bugfix/2914-specify-arraybuffer-type
Aug 17, 2025
Merged

Legend-Master merged 2 commits into
tauri-apps:v2from
samhinshaw:bugfix/2914-specify-arraybuffer-type

Conversation

@samhinshaw

Copy link
Copy Markdown
Contributor

Resolves #2914.

Here we specify the generic argument to Uint8Array, Uint8Array<ArrayBuffer>.

If unspecified, the default is Uint8Array<ArrayBufferLike>. However, both new Uint8Array() and Uint8Array.from() return Uint8Array<ArrayBuffer>.

@samhinshaw
samhinshaw requested a review from a team as a code owner August 13, 2025 20:02
@github-actions

github-actions Bot commented Aug 13, 2025 •

Copy link
Copy Markdown
Contributor

Package Changes Through 08491b5

There are 10 changes which include fs with patch, fs-js with patch, nfc with patch, nfc-js with patch, opener with minor, opener-js with minor, os with patch, os-js with patch, store with minor, store-js with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
api-example 2.0.32 2.0.33
api-example-js 2.0.28 2.0.29
fs 2.4.1 2.4.2
fs-js 2.4.1 2.4.2
dialog 2.3.2 2.3.3
dialog-js 2.3.2 2.3.3
opener 2.4.0 2.5.0
opener-js 2.4.0 2.5.0
http 2.5.1 2.5.2
http-js 2.5.1 2.5.2
nfc 2.3.0 2.3.1
nfc-js 2.3.0 2.3.1
os 2.3.0 2.3.1
os-js 2.3.0 2.3.1
persisted-scope 2.3.1 2.3.2
store 2.3.0 2.4.0
store-js 2.3.0 2.4.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@Legend-Master Legend-Master left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fs' readFile incompatible with TypeScript 5.9.2

2 participants