Skip to content

Commit 339ead3

Browse files
committed
style: fix TS error
1 parent 60ffe5a commit 339ead3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default function memoize<A extends unknown[], R extends unknown, T extend
3333
result = result.catch(error => {
3434
cache.delete(id)
3535
throw error
36-
})
36+
}) as R
3737
}
3838
cache.set(id, result)
3939
return result

0 commit comments

Comments
 (0)