UNPKG

usehooks-ts

Version:

React hook library, ready to use, written in Typescript.

7 lines 206 B
interface State<T> { data?: T; error?: Error; } declare function useFetch<T = unknown>(url?: string, options?: RequestInit): State<T>; export default useFetch; //# sourceMappingURL=useFetch.d.ts.map