Skip to content

Commit

Permalink
refactor(types): update overload signature of b64u
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Feb 19, 2025
1 parent a7f6e0f commit bd28fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ function decodeBase64Url(input: string) {

function b64u(input: string): Uint8Array
function b64u(input: Uint8Array | ArrayBuffer): string
function b64u(input: string | Uint8Array | ArrayBuffer) {
function b64u(input: string | Uint8Array | ArrayBuffer): string | Uint8Array {
if (typeof input === 'string') {
return decodeBase64Url(input)
}
Expand Down

0 comments on commit bd28fcb

Please sign in to comment.