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
Fix TypeScript errors after Deno upgrade to 2.5.2 (#1856)
* Fix TypeScript errors after Deno upgrade to 2.5.2
Deno 2.5.2 has stricter type checking for WebCrypto and Web APIs.
Uint8Array now has a buffer property typed as ArrayBufferLike
(ArrayBuffer | SharedArrayBuffer), but WebCrypto APIs require the
stricter BufferSource type with ArrayBuffer specifically.
Added explicit type casts to satisfy the stricter type requirements:
- crypto.subtle.sign/verify/digest/importKey now require BufferSource casts
- WebAuthn credential creation requires BufferSource casts for challenge and user.id
- Response constructor requires BodyInit cast for Uint8Array bodies
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* support multiple deno versions during transition
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments