Skip to content

Commit dbc445c

Browse files
committed
Fix type error
1 parent e01824c commit dbc445c

File tree

1 file changed

+1
-1
lines changed
  • packages/lazy-file/src

1 file changed

+1
-1
lines changed

packages/lazy-file/src/fs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function openFile(filename: string, options?: OpenFileOptions): File {
4545
return new LazyFile(content, options?.name ?? path.basename(filename), {
4646
type: options?.type ?? lookup(filename),
4747
lastModified: options?.lastModified ?? stats.mtimeMs,
48-
})
48+
}) as File
4949
}
5050

5151
function streamFile(filename: string, start = 0, end = Infinity): ReadableStream<Uint8Array> {

0 commit comments

Comments
 (0)