Fix TypeScript errors for build
This commit is contained in:
1 parent
366072d023
commit
6dd4a45e1c
3 files changed
+4
-4
No files matched your search
@@ -127,7 +127,7 @@ export async function GET(
|
||||
const fileStream = fs.createReadStream(filePath, { start, end });
|
||||
const webStream = new ReadableStream({
|
||||
start(controller) {
|
||||
fileStream.on('data', (chunk) => controller.enqueue(new Uint8Array(chunk)));
|
||||
fileStream.on('data', (chunk) => controller.enqueue(new Uint8Array(chunk as Buffer)));
|
||||
fileStream.on('end', () => controller.close());
|
||||
fileStream.on('error', (err) => controller.error(err));
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user