Fix LightningFSAdapter types

This commit is contained in:
Alex Gleason committed 2025-10-24 23:05:26 -05:00
1 parent 446bd84742
commit c833716723
1 file changed
+1 -1
+1 -1
View File
@@ -8,7 +8,7 @@ import type { JSRuntimeFS, DirectoryEntry } from './JSRuntime';
export class LightningFSAdapter implements JSRuntimeFS {
constructor(private lightningFS: LightningFS.PromisifiedFS) {}
async readFile(path: string): Promise<Uint8Array>;
async readFile(path: string): Promise<Uint8Array<ArrayBuffer>>;
async readFile(path: string, options: 'utf8'): Promise<string>;
async readFile(path: string, options: string): Promise<string>;
async readFile(path: string, options: { encoding: 'utf8' }): Promise<string>;