docs(cache): add a typedoc @returns to createHash (#361)

- 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
This commit is contained in:
Anton Gilgur 2022-06-17 19:35:57 -04:00 committed by GitHub
parent 42c94b8c9d
commit 9ea15cecee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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());