File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change
1
+ * Fixes ` signInFailure ` return type to also include void to match external documentation. Fixes
2
+ https://github.com/firebase/firebaseui-web/issues/770
Original file line number Diff line number Diff line change @@ -674,8 +674,8 @@ firebaseui.auth.Callbacks.prototype.signInSuccessWithAuthResult =
674
674
*
675
675
* @param {!firebaseui.auth.AuthUIError } error The FirebaseUI error identifying
676
676
* the reason behind the failure.
677
- * @return {!Promise<void> } A promise that resolves when the merge conflict
678
- * is completed.
677
+ * @return {!Promise<void>|void } Either void or a promise that resolves when the
678
+ * merge conflict is completed.
679
679
*/
680
680
firebaseui . auth . Callbacks . prototype . signInFailure = function ( error ) { } ;
681
681
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ interface Callbacks {
24
24
authResult : any ,
25
25
redirectUrl ?: string
26
26
) : boolean ;
27
- signInFailure ?( error : firebaseui . auth . AuthUIError ) : Promise < void > ;
27
+ signInFailure ?( error : firebaseui . auth . AuthUIError ) : Promise < void > | void ;
28
28
uiShown ?( ) : void ;
29
29
}
30
30
You can’t perform that action at this time.
0 commit comments