Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TypeScript support #28

Closed
jackyef opened this issue Dec 17, 2019 · 1 comment
Closed

Add TypeScript support #28

jackyef opened this issue Dec 17, 2019 · 1 comment

Comments

@jackyef
Copy link
Owner

jackyef commented Dec 17, 2019

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);
@jackyef
Copy link
Owner Author

jackyef commented Dec 25, 2019

Added in 0.12.5

@jackyef jackyef closed this as completed Dec 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant