File tree 2 files changed +19
-1
lines changed
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -47,4 +47,4 @@ registerCoreComponents();
47
47
export default firebase ;
48
48
49
49
export { _FirebaseNamespace , _FirebaseService } from './types' ;
50
- export { FirebaseApp } from './public-types' ;
50
+ export { FirebaseApp , FirebaseNamespace } from './public-types' ;
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import {
24
24
InstantiationMode
25
25
} from '@firebase/component' ;
26
26
27
+ import { FirebaseAuth } from '@firebase/auth-types' ;
27
28
import { version } from './package.json' ;
28
29
import { Auth } from './src/auth' ;
29
30
import { Persistence } from './src/persistence' ;
@@ -33,6 +34,23 @@ import { RecaptchaVerifier } from './src/recaptcha_verifier';
33
34
34
35
const AUTH_TYPE = 'auth' ;
35
36
37
+ declare module '@firebase/component' {
38
+ interface NameServiceMapping {
39
+ 'auth-compat' : FirebaseAuth ;
40
+ }
41
+ }
42
+
43
+ declare module '@firebase/app-compat' {
44
+ interface FirebaseNamespace {
45
+ auth : {
46
+ ( app ?: FirebaseApp ) : FirebaseAuth ;
47
+ } ;
48
+ }
49
+ interface FirebaseApp {
50
+ auth ?( ) : FirebaseAuth ;
51
+ }
52
+ }
53
+
36
54
// Create auth components to register with firebase.
37
55
// Provides Auth public APIs.
38
56
function registerAuthCompat ( instance : _FirebaseNamespace ) : void {
You can’t perform that action at this time.
0 commit comments