kudos to @MonicaOlejniczak for exporting the vast majority of other types(#74), this seems to be the very last piece.
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.
UseResourceHookResponse
to common typesWhat
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.