Skip to content

Commit 2371c65

Browse files
authored
fix(examples): typo (#84)
1 parent 219478a commit 2371c65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/basic/src/components/Posts.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
export let setPostId
66
7-
async function getPosys() {
7+
async function getPosts() {
88
const { data } = await axios.get(
99
'https://jsonplaceholder.typicode.com/posts'
1010
)
@@ -13,9 +13,9 @@
1313
1414
const client = useQueryClient()
1515
const posts = useQuery<
16-
{ id: string; title: string; body: string }[],
16+
{ id: number; title: string; body: string }[],
1717
AxiosError
18-
>('posts', getPosys)
18+
>('posts', getPosts)
1919
</script>
2020

2121
<div>

0 commit comments

Comments
 (0)