Skip to content

unknown return type for QueryObserverResult 2nd parameter #108

Answered by luii
peterhe2000 asked this question in Q&A
Discussion options

You must be logged in to vote

The second generic param of the QueryObserverResult is the Error that would be returned if there was one.

Since there is no real standard for what an Error is (e.g. it could be a string or Error object for example) this was defaulted to unknown.
But this makes it easier to convert to a concrete type that your Backend could return.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@peterhe2000
Comment options

Answer selected by peterhe2000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants