Skip to content

Instantly share code, notes, and snippets.

@KatagiriSo
Created November 1, 2023 05:46
Show Gist options
  • Save KatagiriSo/af50ed2995cc7dca6179b37d8660b5d0 to your computer and use it in GitHub Desktop.
Save KatagiriSo/af50ed2995cc7dca6179b37d8660b5d0 to your computer and use it in GitHub Desktop.
useSWR
type UseSWR<T> = typeof useSWR<
T,
unknown,
Partial<PublicConfiguration<T, unknown, BareFetcher<T>>> | undefined
>
const getHoge: UseSWR<Hoge> = useSWR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment