(value: string)
| 499 | }; |
| 500 | |
| 501 | const decodeBase64Body = (value: string): DecodedBase64Body => { |
| 502 | const bytes = base64ToUint8Array(value); |
| 503 | return bytes ? { ok: true, bytes } : { ok: false }; |
| 504 | }; |
| 505 | |
| 506 | const toUint8Array = (value: unknown): Uint8Array | null => { |
| 507 | if (value instanceof Uint8Array) return value; |
no test coverage detected