Skip to content

Commit 124281b

Browse files
committed
update docstrings
1 parent 0e42cb0 commit 124281b

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

src/v2/providers/firestore.ts

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export interface DocumentOptions<Document extends string = string> extends Event
137137
}
138138

139139
/**
140-
* Event handler which triggers when a document is created, updated, or deleted in Firestore.
140+
* Event handler that triggers when a document is created, updated, or deleted in Firestore.
141141
*
142142
* @param document - The Firestore document path to trigger on.
143143
* @param handler - Event handler which is run every time a Firestore create, update, or delete occurs.
@@ -150,7 +150,7 @@ export function onDocumentWritten<Document extends string>(
150150
): CloudFunction<FirestoreEvent<Change<DocumentSnapshot> | undefined, ParamsOf<Document>>>;
151151

152152
/**
153-
* Event handler which triggers when a document is created, updated, or deleted in Firestore.
153+
* Event handler that triggers when a document is created, updated, or deleted in Firestore.
154154
*
155155
* @param opts - Options that can be set on an individual event-handling function.
156156
* @param handler - Event handler which is run every time a Firestore create, update, or delete occurs.
@@ -163,7 +163,7 @@ export function onDocumentWritten<Document extends string>(
163163
): CloudFunction<FirestoreEvent<Change<DocumentSnapshot> | undefined, ParamsOf<Document>>>;
164164

165165
/**
166-
* Event handler which triggers when a document is created, updated, or deleted in Firestore.
166+
* Event handler that triggers when a document is created, updated, or deleted in Firestore.
167167
*
168168
* @param documentOrOpts - Options or a string document path.
169169
* @param handler - Event handler which is run every time a Firestore create, update, or delete occurs.
@@ -178,7 +178,7 @@ export function onDocumentWritten<Document extends string>(
178178
}
179179

180180
/**
181-
* Event handler which triggers when a document is created, updated, or deleted in Firestore.
181+
* Event handler that triggers when a document is created, updated, or deleted in Firestore.
182182
* This trigger will also provide the authentication context of the principal who triggered the event.
183183
*
184184
* @param document - The Firestore document path to trigger on.
@@ -192,7 +192,7 @@ export function onDocumentWrittenWithAuthContext<Document extends string>(
192192
): CloudFunction<FirestoreEvent<Change<DocumentSnapshot> | undefined, ParamsOf<Document>>>;
193193

194194
/**
195-
* Event handler which triggers when a document is created, updated, or deleted in Firestore.
195+
* Event handler that triggers when a document is created, updated, or deleted in Firestore.
196196
* This trigger will also provide the authentication context of the principal who triggered the event.
197197
*
198198
* @param opts - Options that can be set on an individual event-handling function.
@@ -206,7 +206,7 @@ export function onDocumentWrittenWithAuthContext<Document extends string>(
206206
): CloudFunction<FirestoreEvent<Change<DocumentSnapshot> | undefined, ParamsOf<Document>>>;
207207

208208
/**
209-
* Event handler which triggers when a document is created, updated, or deleted in Firestore.
209+
* Event handler that triggers when a document is created, updated, or deleted in Firestore.
210210
* This trigger will also provide the authentication context of the principal who triggered the event.
211211
*
212212
* @param opts - Options or a string document path.
@@ -222,7 +222,7 @@ export function onDocumentWrittenWithAuthContext<Document extends string>(
222222
}
223223

224224
/**
225-
* Event handler which triggers when a document is created in Firestore.
225+
* Event handler that triggers when a document is created in Firestore.
226226
*
227227
* @param document - The Firestore document path to trigger on.
228228
* @param handler - Event handler which is run every time a Firestore create occurs.
@@ -235,7 +235,7 @@ export function onDocumentCreated<Document extends string>(
235235
): CloudFunction<FirestoreEvent<QueryDocumentSnapshot | undefined, ParamsOf<Document>>>;
236236

237237
/**
238-
* Event handler which triggers when a document is created in Firestore.
238+
* Event handler that triggers when a document is created in Firestore.
239239
*
240240
* @param opts - Options that can be set on an individual event-handling function.
241241
* @param handler - Event handler which is run every time a Firestore create occurs.
@@ -248,7 +248,7 @@ export function onDocumentCreated<Document extends string>(
248248
): CloudFunction<FirestoreEvent<QueryDocumentSnapshot | undefined, ParamsOf<Document>>>;
249249

250250
/**
251-
* Event handler which triggers when a document is created in Firestore.
251+
* Event handler that triggers when a document is created in Firestore.
252252
*
253253
* @param documentOrOpts - Options or a string document path.
254254
* @param handler - Event handler which is run every time a Firestore create occurs.
@@ -263,7 +263,7 @@ export function onDocumentCreated<Document extends string>(
263263
}
264264

265265
/**
266-
* Event handler which triggers when a document is created in Firestore.
266+
* Event handler that triggers when a document is created in Firestore.
267267
* This trigger will also provide the authentication context of the principal who triggered the event.
268268
*
269269
* @param document - The Firestore document path to trigger on.
@@ -277,7 +277,7 @@ export function onDocumentCreatedWithAuthContext<Document extends string>(
277277
): CloudFunction<FirestoreEvent<QueryDocumentSnapshot | undefined, ParamsOf<Document>>>;
278278

279279
/**
280-
* Event handler which triggers when a document is created in Firestore.
280+
* Event handler that triggers when a document is created in Firestore.
281281
* This trigger will also provide the authentication context of the principal who triggered the event.
282282
*
283283
* @param opts - Options that can be set on an individual event-handling function.
@@ -291,7 +291,7 @@ export function onDocumentCreatedWithAuthContext<Document extends string>(
291291
): CloudFunction<FirestoreEvent<QueryDocumentSnapshot | undefined, ParamsOf<Document>>>;
292292

293293
/**
294-
* Event handler which triggers when a document is created in Firestore.
294+
* Event handler that triggers when a document is created in Firestore.
295295
*
296296
* @param documentOrOpts - Options or a string document path.
297297
* @param handler - Event handler which is run every time a Firestore create occurs.
@@ -306,7 +306,7 @@ export function onDocumentCreatedWithAuthContext<Document extends string>(
306306
}
307307

308308
/**
309-
* Event handler which triggers when a document is updated in Firestore.
309+
* Event handler that triggers when a document is updated in Firestore.
310310
*
311311
* @param document - The Firestore document path to trigger on.
312312
* @param handler - Event handler which is run every time a Firestore update occurs.
@@ -318,7 +318,7 @@ export function onDocumentUpdated<Document extends string>(
318318
) => any | Promise<any>
319319
): CloudFunction<FirestoreEvent<Change<QueryDocumentSnapshot> | undefined, ParamsOf<Document>>>;
320320
/**
321-
* Event handler which triggers when a document is updated in Firestore.
321+
* Event handler that triggers when a document is updated in Firestore.
322322
*
323323
* @param opts - Options that can be set on an individual event-handling function.
324324
* @param handler - Event handler which is run every time a Firestore update occurs.
@@ -331,7 +331,7 @@ export function onDocumentUpdated<Document extends string>(
331331
): CloudFunction<FirestoreEvent<Change<QueryDocumentSnapshot> | undefined, ParamsOf<Document>>>;
332332

333333
/**
334-
* Event handler which triggers when a document is updated in Firestore.
334+
* Event handler that triggers when a document is updated in Firestore.
335335
*
336336
* @param documentOrOpts - Options or a string document path.
337337
* @param handler - Event handler which is run every time a Firestore update occurs.
@@ -346,7 +346,7 @@ export function onDocumentUpdated<Document extends string>(
346346
}
347347

348348
/**
349-
* Event handler which triggers when a document is updated in Firestore.
349+
* Event handler that triggers when a document is updated in Firestore.
350350
* This trigger will also provide the authentication context of the principal who triggered the event.
351351
*
352352
* @param document - The Firestore document path to trigger on.
@@ -359,7 +359,7 @@ export function onDocumentUpdatedWithAuthContext<Document extends string>(
359359
) => any | Promise<any>
360360
): CloudFunction<FirestoreEvent<Change<QueryDocumentSnapshot> | undefined, ParamsOf<Document>>>;
361361
/**
362-
* Event handler which triggers when a document is updated in Firestore.
362+
* Event handler that triggers when a document is updated in Firestore.
363363
* This trigger will also provide the authentication context of the principal who triggered the event.
364364
*
365365
* @param opts - Options that can be set on an individual event-handling function.
@@ -373,7 +373,7 @@ export function onDocumentUpdatedWithAuthContext<Document extends string>(
373373
): CloudFunction<FirestoreEvent<Change<QueryDocumentSnapshot> | undefined, ParamsOf<Document>>>;
374374

375375
/**
376-
* Event handler which triggers when a document is updated in Firestore.
376+
* Event handler that triggers when a document is updated in Firestore.
377377
*
378378
* @param documentOrOpts - Options or a string document path.
379379
* @param handler - Event handler which is run every time a Firestore update occurs.
@@ -388,7 +388,7 @@ export function onDocumentUpdatedWithAuthContext<Document extends string>(
388388
}
389389

390390
/**
391-
* Event handler which triggers when a document is deleted in Firestore.
391+
* Event handler that triggers when a document is deleted in Firestore.
392392
*
393393
* @param document - The Firestore document path to trigger on.
394394
* @param handler - Event handler which is run every time a Firestore delete occurs.
@@ -401,7 +401,7 @@ export function onDocumentDeleted<Document extends string>(
401401
): CloudFunction<FirestoreEvent<QueryDocumentSnapshot | undefined, ParamsOf<Document>>>;
402402

403403
/**
404-
* Event handler which triggers when a document is deleted in Firestore.
404+
* Event handler that triggers when a document is deleted in Firestore.
405405
*
406406
* @param opts - Options that can be set on an individual event-handling function.
407407
* @param handler - Event handler which is run every time a Firestore delete occurs.
@@ -414,7 +414,7 @@ export function onDocumentDeleted<Document extends string>(
414414
): CloudFunction<FirestoreEvent<QueryDocumentSnapshot | undefined, ParamsOf<Document>>>;
415415

416416
/**
417-
* Event handler which triggers when a document is deleted in Firestore.
417+
* Event handler that triggers when a document is deleted in Firestore.
418418
*
419419
* @param documentOrOpts - Options or a string document path.
420420
* @param handler - Event handler which is run every time a Firestore delete occurs.
@@ -429,7 +429,7 @@ export function onDocumentDeleted<Document extends string>(
429429
}
430430

431431
/**
432-
* Event handler which triggers when a document is deleted in Firestore.
432+
* Event handler that triggers when a document is deleted in Firestore.
433433
* This trigger will also provide the authentication context of the principal who triggered the event.
434434
*
435435
* @param document - The Firestore document path to trigger on.
@@ -443,7 +443,7 @@ export function onDocumentDeletedWithAuthContext<Document extends string>(
443443
): CloudFunction<FirestoreEvent<QueryDocumentSnapshot | undefined, ParamsOf<Document>>>;
444444

445445
/**
446-
* Event handler which triggers when a document is deleted in Firestore.
446+
* Event handler that triggers when a document is deleted in Firestore.
447447
* This trigger will also provide the authentication context of the principal who triggered the event.
448448
*
449449
* @param opts - Options that can be set on an individual event-handling function.
@@ -457,7 +457,7 @@ export function onDocumentDeletedWithAuthContext<Document extends string>(
457457
): CloudFunction<FirestoreEvent<QueryDocumentSnapshot | undefined, ParamsOf<Document>>>;
458458

459459
/**
460-
* Event handler which triggers when a document is deleted in Firestore.
460+
* Event handler that triggers when a document is deleted in Firestore.
461461
*
462462
* @param documentOrOpts - Options or a string document path.
463463
* @param handler - Event handler which is run every time a Firestore delete occurs.

0 commit comments

Comments
 (0)