Skip to content

Commit

Permalink
fix: add missing string type for realpathSync's options argument
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzafroide committed Nov 7, 2018
1 parent 81706bb commit 2f0c93c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/volume.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1389,7 +1389,7 @@ export class Volume {
return strToEncoding(realLink.getPath(), encoding);
}

realpathSync(path: TFilePath, options?: IRealpathOptions): TDataOut {
realpathSync(path: TFilePath, options?: IRealpathOptions | string): TDataOut {
return this.realpathBase(pathToFilename(path), getRealpathOptions(options).encoding);
}

Expand Down

0 comments on commit 2f0c93c

Please sign in to comment.