( input: T, )
| 30 | } |
| 31 | } |
| 32 | export function bytesToBase64Safe<T extends Uint8Array | null | undefined>( |
| 33 | input: T, |
| 34 | ): Replace<T, Uint8Array, string> { |
| 35 | if (input == null) { |
| 36 | return input as any; |
| 37 | } else { |
| 38 | return bytesToBase64(input) as any; |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | export function base64ToText(input: string): string { |
| 43 | return Base64.decode(input); |
nothing calls this directly
no test coverage detected