diff --git a/src/volume.ts b/src/volume.ts index e8666839..b3b5c5b8 100644 --- a/src/volume.ts +++ b/src/volume.ts @@ -1058,7 +1058,7 @@ export class Volume { else { const filename = pathToFilename(id as TFilePath); const steps = filenameToSteps(filename); - const link: Link = this.getResolvedLink(steps); + const link: Link | null = this.getResolvedLink(steps); if (link) { const node = link.getNode();