@@ -31,8 +31,8 @@ import { getModularInstance } from '@firebase/util';
31
31
32
32
/**
33
33
*
34
- * @param app - the firebase app instance
35
- * @returns a remote config instance
34
+ * @param app - The `FirebaseApp` instance.
35
+ * @returns A `RemoteConfig` instance.
36
36
*
37
37
* @public
38
38
*/
@@ -44,7 +44,7 @@ export function getRemoteConfig(app: FirebaseApp = getApp()): RemoteConfig {
44
44
45
45
/**
46
46
* Makes the last fetched config available to the getters.
47
- * @param remoteConfig - the remote config instance
47
+ * @param remoteConfig - The `RemoteConfig` instance.
48
48
* @returns A promise which resolves to true if the current call activated the fetched configs.
49
49
* If the fetched configs were already activated, the promise will resolve to false.
50
50
*
@@ -75,9 +75,9 @@ export async function activate(remoteConfig: RemoteConfig): Promise<boolean> {
75
75
76
76
/**
77
77
* Ensures the last activated config are available to the getters.
78
- * @param remoteConfig - the remote config instance
78
+ * @param remoteConfig - The `RemoteConfig` instance.
79
79
*
80
- * @returns A promise that resolves when the last activated config is available to the getters
80
+ * @returns A promise that resolves when the last activated config is available to the getters.
81
81
* @public
82
82
*/
83
83
export function ensureInitialized ( remoteConfig : RemoteConfig ) : Promise < void > {
@@ -92,7 +92,7 @@ export function ensureInitialized(remoteConfig: RemoteConfig): Promise<void> {
92
92
93
93
/**
94
94
* Fetches and caches configuration from the Remote Config service.
95
- * @param remoteConfig - the remote config instance
95
+ * @param remoteConfig - The `RemoteConfig` instance.
96
96
* @public
97
97
*/
98
98
export async function fetchConfig ( remoteConfig : RemoteConfig ) : Promise < void > {
@@ -134,8 +134,8 @@ export async function fetchConfig(remoteConfig: RemoteConfig): Promise<void> {
134
134
/**
135
135
* Gets all config.
136
136
*
137
- * @param remoteConfig - the remote config instance
138
- * @returns all config
137
+ * @param remoteConfig - The `RemoteConfig` instance.
138
+ * @returns All config.
139
139
*
140
140
* @public
141
141
*/
@@ -155,10 +155,10 @@ export function getAll(remoteConfig: RemoteConfig): Record<string, Value> {
155
155
*
156
156
* Convenience method for calling <code>remoteConfig.getValue(key).asBoolean()</code>.
157
157
*
158
- * @param remoteConfig - the remote config instance
159
- * @param key - the name of the parameter
158
+ * @param remoteConfig - The `RemoteConfig` instance.
159
+ * @param key - The name of the parameter.
160
160
*
161
- * @returns the value for the given key as a boolean
161
+ * @returns The value for the given key as a boolean.
162
162
* @public
163
163
*/
164
164
export function getBoolean ( remoteConfig : RemoteConfig , key : string ) : boolean {
@@ -170,10 +170,10 @@ export function getBoolean(remoteConfig: RemoteConfig, key: string): boolean {
170
170
*
171
171
* Convenience method for calling <code>remoteConfig.getValue(key).asNumber()</code>.
172
172
*
173
- * @param remoteConfig - the remote config instance
174
- * @param key - the name of the parameter
173
+ * @param remoteConfig - The `RemoteConfig` instance.
174
+ * @param key - The name of the parameter.
175
175
*
176
- * @returns the value for the given key as a number
176
+ * @returns The value for the given key as a number.
177
177
*
178
178
* @public
179
179
*/
@@ -182,13 +182,13 @@ export function getNumber(remoteConfig: RemoteConfig, key: string): number {
182
182
}
183
183
184
184
/**
185
- * Gets the value for the given key as a String .
185
+ * Gets the value for the given key as a string .
186
186
* Convenience method for calling <code>remoteConfig.getValue(key).asString()</code>.
187
187
*
188
- * @param remoteConfig - the remote config instance
189
- * @param key - the name of the parameter
188
+ * @param remoteConfig - The `RemoteConfig` instance.
189
+ * @param key - The name of the parameter.
190
190
*
191
- * @returns the value for the given key as a String
191
+ * @returns The value for the given key as a string.
192
192
*
193
193
* @public
194
194
*/
@@ -199,10 +199,10 @@ export function getString(remoteConfig: RemoteConfig, key: string): string {
199
199
/**
200
200
* Gets the {@link Value} for the given key.
201
201
*
202
- * @param remoteConfig - the remote config instance
203
- * @param key - the name of the parameter
202
+ * @param remoteConfig - The `RemoteConfig` instance.
203
+ * @param key - The name of the parameter.
204
204
*
205
- * @returns the value for the given key
205
+ * @returns The value for the given key.
206
206
*
207
207
* @public
208
208
*/
@@ -230,8 +230,8 @@ export function getValue(remoteConfig: RemoteConfig, key: string): Value {
230
230
/**
231
231
* Defines the log level to use.
232
232
*
233
- * @param remoteConfig - the remote config instance
234
- * @param logLevel - the log level to set
233
+ * @param remoteConfig - The `RemoteConfig` instance.
234
+ * @param logLevel - The log level to set.
235
235
*
236
236
* @public
237
237
*/
0 commit comments