fix: Changed FramedRead to work with ReadableStream

Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
quexeky
2025-05-28 14:52:42 +10:00
parent 45a26c7156
commit b6910e717b
3 changed files with 33 additions and 13 deletions

2
index.d.ts vendored
View File

@ -5,7 +5,7 @@
function hasBackendForPath(path: string): boolean
function listFiles(path: string): Array<string>
function readFile(path: string, subPath: string): ReadableStream<Array<number>> | null
function readFile(path: string, subPath: string): ReadableStream<Buffer> | null
function callAltThreadFunc(tsfn: ((err: Error | null, ) => any)): void
function generateManifest(dir: string, progressSfn: ((err: Error | null, arg: number) => any), logSfn: ((err: Error | null, arg: string) => any), callbackSfn: ((err: Error | null, arg: string) => any)): void
function generateRootCa(): Array<string>