You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I type it like this, I get red squiggly from query(... onwards collectionData<BuyBackOffer>( query( collection(this.afs, "BuyBackOffers"), where(...)))
If I type it like this, I get red squiggly from collection(... onwards) collectionData<BuyBackOffer>( query<BuyBackOffer>( collection(this.afs, "BuyBackOffers"), where(...)))
I tried all sorts of combinations but can't seem to get it right.
A also have the same problem typing data returned from httpsCallable httpsCallable( this.functions, "name" )( someobject )
I have no idea how to type what the httpsCallable returns. Thanks in advance for any suggestions.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
How do I set types properly in V7?
If I type it like this, I get red squiggly from query(... onwards
collectionData<BuyBackOffer>( query( collection(this.afs, "BuyBackOffers"), where(...)))
If I type it like this, I get red squiggly from collection(... onwards)
collectionData<BuyBackOffer>( query<BuyBackOffer>( collection(this.afs, "BuyBackOffers"), where(...)))
I tried all sorts of combinations but can't seem to get it right.
A also have the same problem typing data returned from httpsCallable
httpsCallable( this.functions, "name" )( someobject )
I have no idea how to type what the httpsCallable returns. Thanks in advance for any suggestions.
Beta Was this translation helpful? Give feedback.
All reactions