(value: string)
| 465 | }; |
| 466 | |
| 467 | const decodeBase64Body = (value: string): DecodedBase64Body => { |
| 468 | const bytes = base64ToUint8Array(value); |
| 469 | return bytes ? { ok: true, bytes } : { ok: false }; |
| 470 | }; |
| 471 | |
| 472 | const toUint8Array = (value: unknown): Uint8Array | null => { |
| 473 | if (value instanceof Uint8Array) return value; |
no test coverage detected