Title: More specific data types - ArrayBuffer instead of ArrayBufferLike by joshkel · Pull Request #279 · msgpack/msgpack-javascript · GitHub
Open Graph Title: More specific data types - ArrayBuffer instead of ArrayBufferLike by joshkel · Pull Request #279 · msgpack/msgpack-javascript
X Title: More specific data types - ArrayBuffer instead of ArrayBufferLike by joshkel · Pull Request #279 · msgpack/msgpack-javascript
Description: By default, TypeScript interfaces like DataView and Uint8Array are used with the more generic ArrayBufferLike type, representing that they can work with either ArrayBuffer or SharedArrayBuffer. TypeScript 5.9 now uses stricter types for interfaces such as the DOM fetch method: a DOM BufferSource is now (correctly) marked as requiring ArrayBuffer, not SharedArrayBuffer. As a result of that change, trying to use a @msgpack/msgpack encode result with a fetch call will result in a type error. This change updates the types in the Encoder class to use ArrayBuffer instead of ArrayBufferLike, which reflects their implementation and prevents issues with the newer, stricter interfaces. See microsoft/TypeScript#62168 for more info.
Open Graph Description: By default, TypeScript interfaces like DataView and Uint8Array are used with the more generic ArrayBufferLike type, representing that they can work with either ArrayBuffer or SharedArrayBuffer. Typ...
X Description: By default, TypeScript interfaces like DataView and Uint8Array are used with the more generic ArrayBufferLike type, representing that they can work with either ArrayBuffer or SharedArrayBuffer. Typ...
Opengraph URL: https://github.com/msgpack/msgpack-javascript/pull/279
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:14f7391e-9f75-9586-67a3-8b31555b7845 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 92E4:333E4B:59466B:77EE9F:6A53ED63 |
| html-safe-nonce | 8d716b1a9ecbb01564ecf6a967b892306fd4e00c88a12c76c18ef84200085757 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MkU0OjMzM0U0Qjo1OTQ2NkI6NzdFRTlGOjZBNTNFRDYzIiwidmlzaXRvcl9pZCI6IjY5NjY5NzI3NDQ0NzYxMjY1NjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b084da6ecd60c8da56d9257db01e38fce3e37b7c216d5547125a98a035b19cf5 |
| hovercard-subject-tag | pull_request:2718386073 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/msgpack/msgpack-javascript/pull/279/files |
| twitter:image | https://avatars.githubusercontent.com/u/476338?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/476338?s=400&v=4 |
| og:image:alt | By default, TypeScript interfaces like DataView and Uint8Array are used with the more generic ArrayBufferLike type, representing that they can work with either ArrayBuffer or SharedArrayBuffer. Typ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/msgpack/msgpack-javascript git https://github.com/msgpack/msgpack-javascript.git |
| octolytics-dimension-user_id | 198264 |
| octolytics-dimension-user_login | msgpack |
| octolytics-dimension-repository_id | 2761854 |
| octolytics-dimension-repository_nwo | msgpack/msgpack-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2761854 |
| octolytics-dimension-repository_network_root_nwo | msgpack/msgpack-javascript |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width