-
Notifications
You must be signed in to change notification settings - Fork 901
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
Update @firebase/database-types #1450
Comments
Since we implement .catch(), we should extend Promise.
Just to be clear, per firebase/firebase-admin-node#433 I think the proposal here is that we make ThenableReference extend Promise instead of PromiseLike. |
Out of curiosity, why does |
@DimitarNestorov I think it's mostly so we can carefully control our public surface area. There may be properties / methods on our implementation classes that are "public" for the sake of our own implementation details, but which aren't actually part of our supported API surface area for third-parties to use. So we use the d.ts files to clearly define (and document) our public APIs. Additionally, any changes to our public surface area are carefully reviewed and subject to extra processes, etc. so having them live in a dedicated file is helpful separation. |
I've created a PR which I think should address this. #1451 |
Since we implement .catch(), we should extend Promise.
Describe your environment
Describe the problem
ThenableRefrence
doesn't havecatch
, whileReference
does.firebase-js-sdk/packages/database-types/index.d.ts
Line 101 in c6357fb
firebase-js-sdk/packages/database/src/api/Reference.ts
Line 316 in c6357fb
Reason for issue: firebase/firebase-admin-node#433
The text was updated successfully, but these errors were encountered: