Skip to content

Commit 6019595

Browse files
authored
Fix typing issue on ArrayBuffer (#99)
1 parent 8c1680b commit 6019595

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/passwordless.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ function base64UrlToBase64(base64Url: string): string {
444444
return base64Url.replace(/-/g, '+').replace(/_/g, '/');
445445
}
446446

447-
function base64UrlToArrayBuffer(base64UrlString: string | BufferSource): ArrayBuffer {
447+
function base64UrlToArrayBuffer(base64UrlString: string | BufferSource): Uint8Array<ArrayBuffer> {
448448
// improvement: Remove BufferSource-type and add proper types upstream
449449
if (typeof base64UrlString !== 'string') {
450450
const msg = 'Cannot convert from Base64Url to ArrayBuffer: Input was not of type string';

0 commit comments

Comments
 (0)