(value: string)
| 504 | }; |
| 505 | |
| 506 | const decodeBase64Body = (value: string): DecodedBase64Body => { |
| 507 | const bytes = base64ToUint8Array(value); |
| 508 | return bytes ? { ok: true, bytes } : { ok: false }; |
| 509 | }; |
| 510 | |
| 511 | const toUint8Array = (value: unknown): Uint8Array | null => { |
| 512 | if (value instanceof Uint8Array) return value; |
no test coverage detected