(
url: string,
init?: RequestInit
)
| 105 | }; |
| 106 | |
| 107 | export const fetchData = async ( |
| 108 | url: string, |
| 109 | init?: RequestInit |
| 110 | ): Promise<Uint8Array> => { |
| 111 | const _fetch = getFetch(); |
| 112 | const r = await _fetch(url, init); |
| 113 | const data = await r.arrayBuffer(); |
| 114 | return new Uint8Array(data); |
| 115 | }; |
| 116 | |
| 117 | export const fetchBuffer = async ( |
| 118 | url: string, |
no test coverage detected