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 =
674674 *
675675 * @param {!firebaseui.auth.AuthUIError } error The FirebaseUI error identifying
676676 * 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.
679679 */
680680firebaseui . auth . Callbacks . prototype . signInFailure = function ( error ) { } ;
681681
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ interface Callbacks {
2424 authResult : any ,
2525 redirectUrl ?: string
2626 ) : boolean ;
27- signInFailure ?( error : firebaseui . auth . AuthUIError ) : Promise < void > ;
27+ signInFailure ?( error : firebaseui . auth . AuthUIError ) : Promise < void > | void ;
2828 uiShown ?( ) : void ;
2929}
3030
You can’t perform that action at this time.
0 commit comments