Skip to content

Commit

Permalink
feat(cache): improve fileCache typings
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Dvorak <[email protected]>
  • Loading branch information
Tomas2D committed Oct 5, 2024
1 parent 9ef508c commit 4c22dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cache/fileCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class FileCache<T> extends BaseCache<T> {

static async fromProvider<A>(provider: BaseCache<A>, input: Input) {
await fs.promises.writeFile(input.fullPath, provider.serialize());
return new FileCache(input);
return new FileCache<A>(input);
}

@Cache()
Expand Down

0 comments on commit 4c22dae

Please sign in to comment.