Skip to content

Commit

Permalink
fix: πŸ› annotate return type of toJSON functions
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed May 1, 2019
1 parent 9e1af7d commit 6609840
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/volume.ts
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ export class Volume {
});
}

private _toJSON(link = this.root, json = {}, path?: string) {
private _toJSON(link = this.root, json = {}, path?: string): DirectoryJSON {
let isEmpty = true;

for (const name in link.children) {
Expand Down Expand Up @@ -836,7 +836,7 @@ export class Volume {
return json;
}

toJSON(paths?: TFilePath | TFilePath[], json = {}, isRelative = false) {
toJSON(paths?: TFilePath | TFilePath[], json = {}, isRelative = false): DirectoryJSON {
const links: Link[] = [];

if (paths) {
Expand Down

0 comments on commit 6609840

Please sign in to comment.