( input: T, )
| 21 | } |
| 22 | |
| 23 | export function base64ToBytesSafe<T extends string | null | undefined>( |
| 24 | input: T, |
| 25 | ): Replace<T, string, Uint8Array> { |
| 26 | if (input == null) { |
| 27 | return input as any; |
| 28 | } else { |
| 29 | return base64ToBytes(input) as any; |
| 30 | } |
| 31 | } |
| 32 | export function bytesToBase64Safe<T extends Uint8Array | null | undefined>( |
| 33 | input: T, |
| 34 | ): Replace<T, Uint8Array, string> { |
no test coverage detected