Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
manudeli committed Oct 26, 2023
1 parent 5e9075c commit 2d3f962
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/pages/docs/react-await/Await.en.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Additionally, this data is cached in the received key and can be used immediatel
import { Await } from '@suspensive/react-await'
import { Suspense } from '@suspensive/react'

const getPost = (postId: number) => fetch(`/post/${postId}`).then((res) => res.json()) as Post
const getPost = (postId: number) => fetch(`/post/${postId}`).then<Post>((res) => res.json())

const Example = () => (
<Suspense fallback="awaiting...">
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/docs/react-await/Await.ko.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { Callout } from 'nextra/components'
import { Await } from '@suspensive/react-await'
import { Suspense } from '@suspensive/react'

const getPost = (postId: number) => fetch(`/post/${postId}`).then((res) => res.json()) as Post
const getPost = (postId: number) => fetch(`/post/${postId}`).then<Post>((res) => res.json())

const Example = () => (
<Suspense fallback="awaiting...">
Expand Down

0 comments on commit 2d3f962

Please sign in to comment.