Skip to content

ThenableReference should extend Promise, not PromiseLike #498

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

Merged
merged 2 commits into from
Apr 24, 2019

Conversation

jsayol
Copy link
Contributor

@jsayol jsayol commented Apr 5, 2019

ThenableReference implements a .catch() method, but ref.push(...).catch(...) generates a TypeScript error, since neither the Reference nor PromiseLike interfaces have that method.

This change was already done on the JS SDK back in January, and this PR simply puts the admin SDK back in line with it.

PS: This fixes issue #144, which was already closed.

@hiranya911 hiranya911 requested a review from Feiyang1 April 6, 2019 00:35
@jsayol jsayol force-pushed the fix-thenablereference-type branch from 230c48b to 18608c7 Compare April 18, 2019 15:54
ThenableReference implements a `.catch()` method, but `ref.push(...).catch(...)` generates a TypeScript error, since neither the `Reference` nor `PromiseLike` interfaces have that method.

This change was [already done on the JS SDK](firebase/firebase-js-sdk#1462) back in January, and this PR simply puts the admin SDK back in line with it.
@hiranya911 hiranya911 merged commit be0765b into firebase:master Apr 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants