atlassian-labs / react-resource-router

Configuration driven routing solution for React SPAs that manages route matching, data fetching and progressive rendering
https://atlassian-labs.github.io/react-resource-router
Apache License 2.0
202 stars 28 forks source link

Expose useResource type #75

Closed theKashey closed 3 years ago

theKashey commented 3 years ago

What

The end goal - expose the result type of useResource.

Why

Because one cannot use generics for ReturnType<typeof useResource> and type harness partially disappear after such operations if and when they are required.