Open quul opened 7 months ago
It seemed that these piece of error handling code could never pass typescript type check as my littele knowledge of typescript. I know this is just for javascript, but since swr is friendly to typescript, maybe it's better to make a Typescript demo?
https://github.com/vercel/swr-site/blob/6a0c3dace044443747e64e813c4738e901a9c724/pages/docs/error-handling.en-US.mdx#L31-L37
It seemed that these piece of error handling code could never pass typescript type check as my littele knowledge of typescript. I know this is just for javascript, but since swr is friendly to typescript, maybe it's better to make a Typescript demo?
https://github.com/vercel/swr-site/blob/6a0c3dace044443747e64e813c4738e901a9c724/pages/docs/error-handling.en-US.mdx#L31-L37