From 2d3f962f56dca8c646cde0735173a0658b52b8a2 Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Fri, 27 Oct 2023 03:39:10 +0900 Subject: [PATCH] docs: update --- docs/src/pages/docs/react-await/Await.en.mdx | 2 +- docs/src/pages/docs/react-await/Await.ko.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/pages/docs/react-await/Await.en.mdx b/docs/src/pages/docs/react-await/Await.en.mdx index ee6da7fb1..cc62df170 100644 --- a/docs/src/pages/docs/react-await/Await.en.mdx +++ b/docs/src/pages/docs/react-await/Await.en.mdx @@ -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((res) => res.json()) const Example = () => ( diff --git a/docs/src/pages/docs/react-await/Await.ko.mdx b/docs/src/pages/docs/react-await/Await.ko.mdx index b1246a08f..32778b512 100644 --- a/docs/src/pages/docs/react-await/Await.ko.mdx +++ b/docs/src/pages/docs/react-await/Await.ko.mdx @@ -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((res) => res.json()) const Example = () => (