Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

types in V7 #3066

Unanswered
metalllus asked this question in Q&A
Nov 13, 2021 · 0 comments
Discussion options

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.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /