Skip to content

Commit 7f763a6

Browse files
not accept opts is string
1 parent ef75919 commit 7f763a6

File tree

2 files changed

+16319
-60
lines changed

2 files changed

+16319
-60
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ declare module '@isomorphic-git/lightning-fs' {
149149

150150
writeFile(filepath: string, data: Uint8Array | string, options?: FS.WriteFileOptions | string): Promise<void>
151151

152-
readFile(filepath: string, options: 'utf8' | { encoding: 'utf8' }): Promise<string>
152+
readFile(filepath: string, options: { encoding: 'utf8' }): Promise<string>
153153
readFile(filepath: string, options?: FS.ReadFileOptions | string): Promise<Uint8Array | string>
154154

155155
/**

0 commit comments

Comments
 (0)