Skip to content

Fixes #1450: ThenableReference should extend Promise, not PromiseLike. #1462

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 1 commit into from
Jan 9, 2019

Conversation

mikelehen
Copy link
Contributor

Since we implement .catch(), we should extend Promise.

Since we implement .catch(), we should extend Promise.
@mikelehen mikelehen force-pushed the mikelehen/fix-thenablereference-type branch from eaabcc1 to 74b4575 Compare January 9, 2019 17:11
@mikelehen mikelehen merged commit 0b42ff8 into master Jan 9, 2019
@mikelehen mikelehen deleted the mikelehen/fix-thenablereference-type branch January 9, 2019 18:18
jsayol added a commit to jsayol/firebase-admin-node that referenced this pull request 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](firebase/firebase-js-sdk#1462) back in January, this PR simply puts the admin SDK in line with it.
jsayol added a commit to jsayol/firebase-admin-node that referenced this pull request 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](firebase/firebase-js-sdk#1462) back in January, and this PR simply puts the admin SDK back in line with it.
jsayol added a commit to jsayol/firebase-admin-node that referenced this pull request Apr 18, 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](firebase/firebase-js-sdk#1462) back in January, and this PR simply puts the admin SDK back in line with it.
jsayol added a commit to jsayol/firebase-admin-node that referenced this pull request Apr 18, 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](firebase/firebase-js-sdk#1462) back in January, and this PR simply puts the admin SDK back in line with it.
hiranya911 pushed a commit to firebase/firebase-admin-node that referenced this pull request Apr 24, 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](firebase/firebase-js-sdk#1462) back in January, and this PR simply puts the admin SDK back in line with it.
@firebase firebase locked and limited conversation to collaborators Oct 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants