(value: string)
| 458 | }; |
| 459 | |
| 460 | const decodeBase64Body = (value: string): DecodedBase64Body => { |
| 461 | const bytes = base64ToUint8Array(value); |
| 462 | return bytes ? { ok: true, bytes } : { ok: false }; |
| 463 | }; |
| 464 | |
| 465 | const toUint8Array = (value: unknown): Uint8Array | null => { |
| 466 | if (value instanceof Uint8Array) return value; |
no test coverage detected