Skip to content

Commit

Permalink
docs(cache): add a typedoc @returns to createHash (#361)
Browse files Browse the repository at this point in the history
- follow-up to my previous commit
  - per comments, this has to be FS-safe, so I thought it would be good to explicitly mention that somewhere
  • Loading branch information
agilgur5 committed Jun 17, 2022
1 parent 42c94b8 commit 9ea15ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tscache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ export class TsCache
});
}

/** @returns an FS-safe hash string for use as a path to the cached content */
private createHash(id: string, snapshot: tsTypes.IScriptSnapshot)
{
const data = snapshot.getText(0, snapshot.getLength());
Expand Down

0 comments on commit 9ea15ce

Please sign in to comment.