@@ -26,26 +26,7 @@ import {
26
26
InstantiationMode
27
27
} from '@firebase/component' ;
28
28
29
- import {
30
- EmailAuthProvider ,
31
- EmailAuthProvider_Instance ,
32
- FacebookAuthProvider ,
33
- FacebookAuthProvider_Instance ,
34
- FirebaseAuth as AuthCompat ,
35
- GithubAuthProvider ,
36
- GithubAuthProvider_Instance ,
37
- GoogleAuthProvider ,
38
- GoogleAuthProvider_Instance ,
39
- OAuthProvider ,
40
- PhoneAuthProvider ,
41
- PhoneAuthProvider_Instance ,
42
- PhoneMultiFactorGenerator ,
43
- RecaptchaVerifier ,
44
- RecaptchaVerifier_Instance ,
45
- SAMLAuthProvider ,
46
- TwitterAuthProvider ,
47
- TwitterAuthProvider_Instance
48
- } from '@firebase/auth-types' ;
29
+ import * as types from '@firebase/auth-types' ;
49
30
import { version } from './package.json' ;
50
31
import { Auth } from './src/auth' ;
51
32
import { Persistence } from './src/persistence' ;
@@ -56,36 +37,36 @@ const AUTH_TYPE = 'auth-compat';
56
37
57
38
declare module '@firebase/component' {
58
39
interface NameServiceMapping {
59
- 'auth-compat' : AuthCompat ;
40
+ 'auth-compat' : types . FirebaseAuth ;
60
41
}
61
42
}
62
43
63
44
declare module '@firebase/app-compat' {
64
45
interface FirebaseNamespace {
65
46
auth : {
66
- ( app ?: FirebaseApp ) : AuthCompat ;
67
- Auth : typeof AuthCompat ;
68
- EmailAuthProvider : typeof EmailAuthProvider ;
69
- EmailAuthProvider_Instance : typeof EmailAuthProvider_Instance ;
70
- FacebookAuthProvider : typeof FacebookAuthProvider ;
71
- FacebookAuthProvider_Instance : typeof FacebookAuthProvider_Instance ;
72
- GithubAuthProvider : typeof GithubAuthProvider ;
73
- GithubAuthProvider_Instance : typeof GithubAuthProvider_Instance ;
74
- GoogleAuthProvider : typeof GoogleAuthProvider ;
75
- GoogleAuthProvider_Instance : typeof GoogleAuthProvider_Instance ;
76
- OAuthProvider : typeof OAuthProvider ;
77
- SAMLAuthProvider : typeof SAMLAuthProvider ;
78
- PhoneAuthProvider : typeof PhoneAuthProvider ;
79
- PhoneAuthProvider_Instance : typeof PhoneAuthProvider_Instance ;
80
- PhoneMultiFactorGenerator : typeof PhoneMultiFactorGenerator ;
81
- RecaptchaVerifier : typeof RecaptchaVerifier ;
82
- RecaptchaVerifier_Instance : typeof RecaptchaVerifier_Instance ;
83
- TwitterAuthProvider : typeof TwitterAuthProvider ;
84
- TwitterAuthProvider_Instance : typeof TwitterAuthProvider_Instance ;
47
+ ( app ?: FirebaseApp ) : types . FirebaseAuth ;
48
+ Auth : typeof types . FirebaseAuth ;
49
+ EmailAuthProvider : typeof types . EmailAuthProvider ;
50
+ EmailAuthProvider_Instance : typeof types . EmailAuthProvider_Instance ;
51
+ FacebookAuthProvider : typeof types . FacebookAuthProvider ;
52
+ FacebookAuthProvider_Instance : typeof types . FacebookAuthProvider_Instance ;
53
+ GithubAuthProvider : typeof types . GithubAuthProvider ;
54
+ GithubAuthProvider_Instance : typeof types . GithubAuthProvider_Instance ;
55
+ GoogleAuthProvider : typeof types . GoogleAuthProvider ;
56
+ GoogleAuthProvider_Instance : typeof types . GoogleAuthProvider_Instance ;
57
+ OAuthProvider : typeof types . OAuthProvider ;
58
+ SAMLAuthProvider : typeof types . SAMLAuthProvider ;
59
+ PhoneAuthProvider : typeof types . PhoneAuthProvider ;
60
+ PhoneAuthProvider_Instance : typeof types . PhoneAuthProvider_Instance ;
61
+ PhoneMultiFactorGenerator : typeof types . PhoneMultiFactorGenerator ;
62
+ RecaptchaVerifier : typeof types . RecaptchaVerifier ;
63
+ RecaptchaVerifier_Instance : typeof types . RecaptchaVerifier_Instance ;
64
+ TwitterAuthProvider : typeof types . TwitterAuthProvider ;
65
+ TwitterAuthProvider_Instance : typeof types . TwitterAuthProvider_Instance ;
85
66
} ;
86
67
}
87
68
interface FirebaseApp {
88
- auth ?( ) : AuthCompat ;
69
+ auth ?( ) : types . FirebaseAuth ;
89
70
}
90
71
}
91
72
0 commit comments