(value: string)
| 81 | } |
| 82 | |
| 83 | const base64ToArrayBuffer = (value: string): ArrayBuffer => { |
| 84 | const bytes = Uint8Array.from(atob(value), (char) => char.charCodeAt(0)); |
| 85 | return bytes.buffer.slice(bytes.byteOffset, bytes.byteOffset + bytes.byteLength); |
| 86 | }; |
| 87 | |
| 88 | const assetRequest = (path: string): Request => new Request(new URL(path, "https://assets.local")); |
| 89 |