Add TypeScript support
jackyef opened this issue · comments
Jacky Efendi commented
User of the library should be able to define what they data is going to look like. Something like
interface MyData {
foo: string;
bar: number;
}
const { data, error, error } = useData<MyData>(url);
Jacky Efendi commented
Added in 0.12.5