mirror of
https://github.com/ezolenko/rollup-plugin-typescript2.git
synced 2025-12-08 19:06:16 +00:00
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:
parent
42c94b8c9d
commit
9ea15cecee
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user