@@ -131,13 +131,13 @@ export interface TestEnvironmentConfig {
131
131
export interface HostAndPort {
132
132
/**
133
133
* The host of the emulator. Can be omitted if discovered automatically through the hub or
134
- * specified via environment variables. See { @code TestEnvironmentConfig} for details.
134
+ * specified via environment variables. See ` TestEnvironmentConfig` for details.
135
135
*/
136
136
host : string ;
137
137
138
138
/**
139
139
* The port of the emulator. Can be omitted if discovered automatically through the hub or
140
- * specified via environment variables. See { @code TestEnvironmentConfig} for details.
140
+ * specified via environment variables. See ` TestEnvironmentConfig` for details.
141
141
*/
142
142
port : number ;
143
143
}
@@ -170,12 +170,12 @@ export interface RulesTestEnvironment {
170
170
} ;
171
171
172
172
/**
173
- * Create a { @code RulesTestContext} which behaves like an authenticated Firebase Auth user.
173
+ * Create a ` RulesTestContext` which behaves like an authenticated Firebase Auth user.
174
174
*
175
175
* Requests created via the returned context will have a mock Firebase Auth token attached.
176
176
*
177
- * @param user_id the User ID of the user. Specifies the value of "user_id" and "sub" on the token
178
- * @param tokenOptions custom claims or overrides for Firebase Auth token payloads
177
+ * @param user_id - the User ID of the user. Specifies the value of "user_id" and "sub" on the token
178
+ * @param tokenOptions - custom claims or overrides for Firebase Auth token payloads
179
179
*
180
180
* @example
181
181
* ```javascript
@@ -189,7 +189,7 @@ export interface RulesTestEnvironment {
189
189
) : RulesTestContext ;
190
190
191
191
/**
192
- * Create a { @code RulesTestContext} which behaves like client that is NOT logged in via Firebase
192
+ * Create a ` RulesTestContext` which behaves like client that is NOT logged in via Firebase
193
193
* Auth.
194
194
*
195
195
* Requests created via the returned context will not have Firebase Auth tokens attached.
@@ -222,7 +222,7 @@ export interface RulesTestEnvironment {
222
222
clearDatabase ( ) : Promise < void > ;
223
223
224
224
/**
225
- * Clear data in the Firestore that belongs to the { @code projectId} in the Firestore emulator.
225
+ * Clear data in the Firestore that belongs to the ` projectId` in the Firestore emulator.
226
226
*/
227
227
clearFirestore ( ) : Promise < void > ;
228
228
@@ -236,7 +236,7 @@ export interface RulesTestEnvironment {
236
236
* created in test environment and clean up the underlying resources, allowing a clean exit.
237
237
*
238
238
* This method does not change the state in emulators in any way. To reset data between tests,
239
- * see { @code clearDatabase()}, { @code clearFirestore()} and { @code clearStorage()} .
239
+ * see ` clearDatabase()`, ` clearFirestore()` and ` clearStorage()` .
240
240
*/
241
241
cleanup ( ) : Promise < void > ;
242
242
}
@@ -247,38 +247,38 @@ export interface RulesTestEnvironment {
247
247
*/
248
248
export interface RulesTestContext {
249
249
/**
250
- * Get a Firestore instance for this test context. The returned Firebase JS Client SDK instance
250
+ * Get a { @link @firebase/firestore# Firestore} instance for this test context. The returned Firebase JS Client SDK instance
251
251
* can be used with the client SDK APIs (v9 modular or v9 compat).
252
252
*
253
- * See: https:// firebase.google.com/docs/reference/js/v9/firestore_
254
- * @param settings a settings object to configure the {@code Firestore} instance
255
- * @returns a Firestore instance configured to connect to the emulator
253
+ * See: { @link @ firebase/firestore#Firestore }
254
+ * @param settings - a settings object to configure the {@link @firebase/firestore# Firestore } instance
255
+ * @returns a ` Firestore` instance configured to connect to the emulator
256
256
* @public
257
257
*/
258
258
firestore (
259
259
settings ?: firebase . firestore . Settings
260
260
) : firebase . firestore . Firestore ;
261
261
262
262
/**
263
- * Get a Firestore instance for this test context. The returned Firebase JS Client SDK instance
263
+ * Get a { @link @firebase/database#Database } instance for this test context. The returned Firebase JS Client SDK instance
264
264
* can be used with the client SDK APIs (v9 modular or v9 compat).
265
265
*
266
- * See: https:// firebase.google.com/docs/reference/js/v9/firestore_
267
- * @param databaseURL the URL of the Realtime Database instance. If specified, returns an instance
266
+ * See: { @link @ firebase/database#Database }
267
+ * @param databaseURL - the URL of the Realtime Database instance. If specified, returns an instance
268
268
* for an emulated version of the namespace with parameters extracted from URL
269
- * @returns a Database instance configured to connect to the emulator. It never connects to
270
- * production even if a production databaseURL is specified
269
+ * @returns a ` Database` instance configured to connect to the emulator. It never connects to
270
+ * production even if a production ` databaseURL` is specified
271
271
*/
272
272
database ( databaseURL ?: string ) : firebase . database . Database ;
273
273
274
274
/**
275
- * Get a Storage instance for this test context. The returned Firebase JS Client SDK instance
275
+ * Get a { @link @firebase/storage#FirebaseStorage } instance for this test context. The returned Firebase JS Client SDK instance
276
276
* can be used with the client SDK APIs (v9 modular or v9 compat).
277
277
*
278
- * See: https:// firebase.google.com/docs/reference/js/v9/firestore_
279
- * @param settings the gs:// url to the Firebase Storage Bucket for testing. If specified,
280
- * returns a Storage instance for an emulated version of the bucket name
281
- * @returns a Storage instance configured to connect to the emulator
278
+ * See: { @link @ firebase/storage#FirebaseStorage }
279
+ * @param settings - the gs:// url to the Firebase Storage Bucket for testing. If specified,
280
+ * returns a ` Storage` instance for an emulated version of the bucket name
281
+ * @returns a ` Storage` instance configured to connect to the emulator
282
282
*/
283
283
storage ( bucketUrl ?: string ) : firebase . storage . Storage ;
284
284
}
0 commit comments