use-suspense-query
use-suspense-query copied to clipboard
Add generic typings
- Added generic typings so that way the returned result isn't just
any
but is also typed too #1 - Added prettier configuration just to keep things clean :)
- Added
@apollo/client
andgraphql
as dependencies, since I'm importing types directly from the library (not going to be bundled in the code though, just need to be installed with the library) - Also used
yarn
as opposed tonpm install
(just what I am used to) - There are still some missing gaps I think, but it's a good starting point