Skip to content

Commit

Permalink
update docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
blidd-google committed Apr 1, 2024
1 parent 0e42cb0 commit 124281b
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions src/v2/providers/firestore.ts
Expand Up @@ -137,7 +137,7 @@ export interface DocumentOptions<Document extends string = string> extends Event
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/**
* Event handler which triggers when a document is deleted in Firestore.
* Event handler that triggers when a document is deleted in Firestore.
*
* @param documentOrOpts - Options or a string document path.
* @param handler - Event handler which is run every time a Firestore delete occurs.
Expand Down

0 comments on commit 124281b

Please sign in to comment.