Issues with typescript declarations #8
Labels
No labels
bug
dependencies
duplicate
enhancement
help wanted
invalid
javascript
question
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
gucheen/fetchql#8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I was looking for a simple graphql client library and chose this one, and tried to use it in my typescript project. But even before I was able to setup the client instance, several problems stopped me.
return Promise.reject(error)in therequestErrordoes not work, even though theREADMEhas it as an examplereueqstErrorin the interceptor orrejedctin the returned object of FetchQL instance methods (and now I realize they should return promises, I guess?)If someone else can handle this then it is fine, but maybe I can fix some of the issues if that is needed. But I'm not sure if I will understand all underlying things going on in the source code. I also suggest adding typescript as a dev dependency and then testing if the type declarations enable users to successfully compile. Should I start working on this tomorrow? (It's late at night here so I need to go to bed)
@JameeKim I've renewed the declaration file in v2.3.0. Please try the new version and check if the declaration file works well.
PRs are welcome.