swr-fetch-client-typescript A typescript fetch client to use with swr const { data, error, isLoading } = useSWR('/api/user', fetchClient<YourResponse>('/api/user'));