@@ -41,10 +41,10 @@ class StorageInternals implements FirebaseServiceInternalsInterface {
41
41
* Storage service bound to the provided app.
42
42
*/
43
43
export class Storage implements FirebaseServiceInterface {
44
- public INTERNAL : StorageInternals = new StorageInternals ( ) ;
44
+ public readonly INTERNAL : StorageInternals = new StorageInternals ( ) ;
45
45
46
- private appInternal : FirebaseApp ;
47
- private storageClient : any ;
46
+ private readonly appInternal : FirebaseApp ;
47
+ private readonly storageClient : gcs ;
48
48
49
49
/**
50
50
* @param {FirebaseApp } app The app for this Storage service.
@@ -74,7 +74,7 @@ export class Storage implements FirebaseServiceInterface {
74
74
if ( cert != null ) {
75
75
// cert is available when the SDK has been initialized with a service account JSON file,
76
76
// or by setting the GOOGLE_APPLICATION_CREDENTIALS envrionment variable.
77
- this . storageClient = storage ( {
77
+ this . storageClient = new storage ( {
78
78
projectId : cert . projectId ,
79
79
credentials : {
80
80
private_key : cert . privateKey ,
@@ -83,7 +83,7 @@ export class Storage implements FirebaseServiceInterface {
83
83
} ) ;
84
84
} else if ( app . options . credential instanceof ApplicationDefaultCredential ) {
85
85
// Try to use the Google application default credentials.
86
- this . storageClient = storage ( ) ;
86
+ this . storageClient = new storage ( ) ;
87
87
} else {
88
88
throw new FirebaseError ( {
89
89
code : 'storage/invalid-credential' ,
0 commit comments