We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e01824c commit dbc445cCopy full SHA for dbc445c
packages/lazy-file/src/fs.ts
@@ -45,7 +45,7 @@ export function openFile(filename: string, options?: OpenFileOptions): File {
45
return new LazyFile(content, options?.name ?? path.basename(filename), {
46
type: options?.type ?? lookup(filename),
47
lastModified: options?.lastModified ?? stats.mtimeMs,
48
- })
+ }) as File
49
}
50
51
function streamFile(filename: string, start = 0, end = Infinity): ReadableStream<Uint8Array> {
0 commit comments