@@ -39,7 +39,9 @@ class StorageInternals implements FirebaseServiceInternalsInterface {
39
39
}
40
40
41
41
/**
42
- * Storage service bound to the provided app.
42
+ * The default `Storage` service if no
43
+ * app is provided or the `Storage` service associated with the provided
44
+ * app.
43
45
*/
44
46
export class Storage implements FirebaseServiceInterface {
45
47
public readonly INTERNAL : StorageInternals = new StorageInternals ( ) ;
@@ -50,6 +52,7 @@ export class Storage implements FirebaseServiceInterface {
50
52
/**
51
53
* @param {FirebaseApp } app The app for this Storage service.
52
54
* @constructor
55
+ * @internal
53
56
*/
54
57
constructor ( app : FirebaseApp ) {
55
58
if ( ! validator . isNonNullObject ( app ) || ! ( 'options' in app ) ) {
@@ -98,12 +101,10 @@ export class Storage implements FirebaseServiceInterface {
98
101
}
99
102
100
103
/**
101
- * Returns a reference to a Google Cloud Storage bucket. Returned reference can be used to upload
102
- * and download content from Google Cloud Storage.
103
- *
104
- * @param {string= } name Optional name of the bucket to be retrieved. If name is not specified,
105
- * retrieves a reference to the default bucket.
106
- * @return {Bucket } A Bucket object from the @google-cloud/storage library.
104
+ * @param name Optional name of the bucket to be retrieved. If name is not specified,
105
+ * retrieves a reference to the default bucket.
106
+ * @returns A [Bucket](https://cloud.google.com/nodejs/docs/reference/storage/latest/Bucket)
107
+ * instance as defined in the `@google-cloud/storage` package.
107
108
*/
108
109
public bucket ( name ?: string ) : Bucket {
109
110
const bucketName = ( typeof name !== 'undefined' )
@@ -120,9 +121,7 @@ export class Storage implements FirebaseServiceInterface {
120
121
}
121
122
122
123
/**
123
- * Returns the app associated with this Storage instance.
124
- *
125
- * @return {FirebaseApp } The app associated with this Storage instance.
124
+ * @return The app associated with this Storage instance.
126
125
*/
127
126
get app ( ) : FirebaseApp {
128
127
return this . appInternal ;
0 commit comments