-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Types: Add firebase type ref #853
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
Conversation
| startSignIn(auth: any, tenantInfo?: firebaseui.auth.SelectedTenantInfo): | ||
| getAuth(apiKey: string, tenantId: string | null): firebase.default.auth.Auth; | ||
| startSignIn(auth: firebase.default.auth.Auth, tenantInfo?: firebaseui.auth.SelectedTenantInfo): | ||
| Promise<any>; // tslint:disable-line |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the return type here?
|
Hey @ShaMan123, thanks for the contribution! |
|
That's what I thought but the compiler throws an error without |
The problem is if we accept this, it could be a breaking change as it may not match the existing public types. |
|
I disagree. Why would it be breaking? And why would it mismatch? |
Hmm, I take that back as the underlying types should match, but we'd want to test this to confirm nothing unexpected surfaces. Regardless, can you open an issue in the firebase-js-sdk repo about the |
|
Opened issue |
|
What you think about defining local types at the top of the file so it can be easily maintained, so you can merge and fix later on? type Auth = firebase.default.auth.Auth; |
https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html#-reference-types- Did my best to infer types from code.
https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html#-reference-types-
Did my best to infer types from code.