-
Notifications
You must be signed in to change notification settings - Fork 894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rtdb: Reference#transaction return type #6071
Comments
Hi @rhodgkins, from looking at your issue, I believe you should file an issue with the firebase-admin repo: https://github.com/firebase/firebase-admin-node |
Are you sure - when looking at the definitions for Anyway, can't you migrate this issue over (I've seen that happen for admin issues that get moved here)? |
Reopened, as we do own Specifically it looks like the database-types definitions could be updated to reflect the more specific types now used in database-compat source (in this case
|
Thanks @hsubox76, yeh the main issue is the lack of typing for autocompletion - I've had a few silly bugs with the the spelling of |
Can you double check that fixing that file in your local installation fixes it? Just manually change The source file for the second one would be
|
Yes, database-compat is fine, that's the source code. What needs to be changed in tandem is Basically, the |
OK, I think I understand now - I'll have a go at a PR updating |
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
The
transaction
method on a reference is typed to returnPromise<any>
as opposed toPromise<{ committed: boolean, snapshot: DataSnapshot }>
.firebase-js-sdk/packages/database-types/index.d.ts
Lines 140 to 144 in a7f4a2e
This is the same problem in the docs.
I'm happy to create a PR to update the above file, but not sure if that's the correct place to do this?
Steps to reproduce:
Result is
any
Relevant Code:
See above.
The text was updated successfully, but these errors were encountered: