Skip to content

Commit

Permalink
fix: error type
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun committed Jul 16, 2020
1 parent 7df69b8 commit c6b608e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/utils/cache-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function defaultHash(...args): string {

export function buildCacheFactory<T>(
policy: CachePolicy,
fn: (...args: any[]) => T,
fn: (...args: any[]) => any,
hashFn: (...args: any[]) => string = defaultHash
): (...args: any[]) => Promise<T> {
let cacheManager: CacheManager;
Expand Down

0 comments on commit c6b608e

Please sign in to comment.