Skip to content

Commit

Permalink
chore: fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
flogy committed Apr 15, 2024
1 parent acc265c commit 2796a48
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/NativeFileAccess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,12 @@ export interface Spec extends TurboModule {
mkdir(path: string): Promise<string>;
mv(source: string, target: string): Promise<void>;
readFile(path: string, encoding: string): Promise<string>;
readFileChunk(path: string, offset: number, length: number, encoding: string): Promise<string>;
readFileChunk(
path: string,
offset: number,
length: number,
encoding: string
): Promise<string>;
stat(path: string): Promise<FileStat>;
statDir(path: string): Promise<FileStat[]>;
unlink(path: string): Promise<void>;
Expand Down
7 changes: 6 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,12 @@ export const FileSystem = {
/**
* Read a chunk of the content of a file.
*/
readFileChunk(path: string, offset: number, length: number, encoding: Encoding = 'utf8') {
readFileChunk(
path: string,
offset: number,
length: number,
encoding: Encoding = 'utf8'
) {
return FileAccessNative.readFileChunk(path, offset, length, encoding);
},

Expand Down

0 comments on commit 2796a48

Please sign in to comment.