Skip to content

Commit

Permalink
docs: fix typo in defineCachedFunction example (#2133)
Browse files Browse the repository at this point in the history
  • Loading branch information
RihanArfan authored Feb 2, 2024
1 parent 344c6e6 commit 7a28027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/1.guide/5.cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ For example, you could want to cache for 1 hour the result of an API call:

::code-group
```ts [utils/github.ts]
export const cachedGHStars = definedCachedFunction(async (repo: string) => {
export const cachedGHStars = defineCachedFunction(async (repo: string) => {
const data: any = await $fetch(`https://api.github.com/repos/${repo}`)

return data.stargazers_count
Expand Down

0 comments on commit 7a28027

Please sign in to comment.