@@ -41,10 +41,10 @@ class StorageInternals implements FirebaseServiceInternalsInterface {
4141 * Storage service bound to the provided app.
4242 */
4343export class Storage implements FirebaseServiceInterface {
44- public INTERNAL : StorageInternals = new StorageInternals ( ) ;
44+ public readonly INTERNAL : StorageInternals = new StorageInternals ( ) ;
4545
46- private appInternal : FirebaseApp ;
47- private storageClient : any ;
46+ private readonly appInternal : FirebaseApp ;
47+ private readonly storageClient : gcs ;
4848
4949 /**
5050 * @param {FirebaseApp } app The app for this Storage service.
@@ -74,7 +74,7 @@ export class Storage implements FirebaseServiceInterface {
7474 if ( cert != null ) {
7575 // cert is available when the SDK has been initialized with a service account JSON file,
7676 // or by setting the GOOGLE_APPLICATION_CREDENTIALS envrionment variable.
77- this . storageClient = storage ( {
77+ this . storageClient = new storage ( {
7878 projectId : cert . projectId ,
7979 credentials : {
8080 private_key : cert . privateKey ,
@@ -83,7 +83,7 @@ export class Storage implements FirebaseServiceInterface {
8383 } ) ;
8484 } else if ( app . options . credential instanceof ApplicationDefaultCredential ) {
8585 // Try to use the Google application default credentials.
86- this . storageClient = storage ( ) ;
86+ this . storageClient = new storage ( ) ;
8787 } else {
8888 throw new FirebaseError ( {
8989 code : 'storage/invalid-credential' ,
0 commit comments