fix: BlobPart[] type for chunks array
This commit is contained in:
@@ -67,7 +67,7 @@ export default function CloudRevealSection() {
|
|||||||
if (!res.ok) throw new Error('fetch failed')
|
if (!res.ok) throw new Error('fetch failed')
|
||||||
const total = Number(res.headers.get('content-length') || 0)
|
const total = Number(res.headers.get('content-length') || 0)
|
||||||
const reader = res.body!.getReader()
|
const reader = res.body!.getReader()
|
||||||
const chunks: Uint8Array[] = []
|
const chunks: BlobPart[] = []
|
||||||
let received = 0
|
let received = 0
|
||||||
|
|
||||||
const pump = (): Promise<Blob> =>
|
const pump = (): Promise<Blob> =>
|
||||||
|
|||||||
Reference in New Issue
Block a user