Skip to content

Commit

Permalink
feat: add explicit key and value types for cache
Browse files Browse the repository at this point in the history
  • Loading branch information
velut committed Apr 17, 2024
1 parent 484d883 commit e098cb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fetch-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Internal cache for all requests.
@see {@link https://github.com/sindresorhus/quick-lru}
@internal
*/
export const cache = new QuickLRU({
export const cache = new QuickLRU<string, unknown>({
// 100 items.
maxSize: 100,

Expand Down

0 comments on commit e098cb5

Please sign in to comment.