Skip to content

Commit 2f0c93c

Browse files
committed
fix: add missing string type for realpathSync's options argument
1 parent 81706bb commit 2f0c93c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/volume.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,7 @@ export class Volume {
13891389
return strToEncoding(realLink.getPath(), encoding);
13901390
}
13911391

1392-
realpathSync(path: TFilePath, options?: IRealpathOptions): TDataOut {
1392+
realpathSync(path: TFilePath, options?: IRealpathOptions | string): TDataOut {
13931393
return this.realpathBase(pathToFilename(path), getRealpathOptions(options).encoding);
13941394
}
13951395

0 commit comments

Comments
 (0)