Skip to content

Commit 869ddc5

Browse files
committed
chore: doc tag cleanup
1 parent c80e618 commit 869ddc5

38 files changed

+1539
-2943
lines changed

api-report/firestore.api.md

Lines changed: 1 addition & 1684 deletions
Large diffs are not rendered by default.

dev/src/aggregate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class AggregateField<T> implements firestore.AggregateField<T> {
101101
* `other` performs the same kind of aggregation on the same field (if any).
102102
*
103103
* @param other The object to compare to this object for equality.
104-
* @return `true` if this object is "equal" to the given object, as
104+
* @returns `true` if this object is "equal" to the given object, as
105105
* defined above, or `false` otherwise.
106106
*/
107107
isEqual(other: AggregateField<T>): boolean {

dev/src/backoff.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export class ExponentialBackoff {
248248
* Returns a promise that resolves after currentDelayMs, and increases the
249249
* delay for any subsequent attempts.
250250
*
251-
* @return A Promise that resolves when the current delay elapsed.
251+
* @returns A Promise that resolves when the current delay elapsed.
252252
* @private
253253
* @internal
254254
*/

dev/src/bulk-writer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ export class BulkWriter {
865865
* for writes that were added after the method is called. If you want to wait
866866
* for additional writes, call `flush()` again.
867867
*
868-
* @return {Promise<void>} A promise that resolves when all enqueued writes
868+
* @returns {Promise<void>} A promise that resolves when all enqueued writes
869869
* up to this point have been committed.
870870
*
871871
* @example
@@ -906,7 +906,7 @@ export class BulkWriter {
906906
* Promise will never be rejected. Calling this method will send all requests.
907907
* The promise resolves immediately if there are no pending writes.
908908
*
909-
* @return {Promise<void>} A promise that resolves when all enqueued writes
909+
* @returns {Promise<void>} A promise that resolves when all enqueued writes
910910
* up to this point have been committed.
911911
*
912912
* @example

dev/src/collection-group.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class CollectionGroup<
7676
* @param {number} desiredPartitionCount The desired maximum number of
7777
* partition points. The number must be strictly positive. The actual number
7878
* of partitions returned may be fewer.
79-
* @return {AsyncIterable<QueryPartition>} An AsyncIterable of
79+
* @returns {AsyncIterable<QueryPartition>} An AsyncIterable of
8080
* `QueryPartition`s.
8181
*/
8282
async *getPartitions(
@@ -198,7 +198,7 @@ export class CollectionGroup<
198198
* ```
199199
* @param {FirestoreDataConverter | null} converter Converts objects to and
200200
* from Firestore. Passing in `null` removes the current converter.
201-
* @return {CollectionGroup} A `CollectionGroup` that uses the provided
201+
* @returns {CollectionGroup} A `CollectionGroup` that uses the provided
202202
* converter.
203203
*/
204204
withConverter<

dev/src/convert.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import {RESERVED_MAP_KEY, RESERVED_MAP_KEY_VECTOR_VALUE} from './map-type';
4343
* @param timestampValue The value to convert.
4444
* @param argumentName The argument name to use in the error message if the
4545
* conversion fails. If omitted, 'timestampValue' is used.
46-
* @return The value as expected by Protobuf JS or undefined if no input was
46+
* @returns The value as expected by Protobuf JS or undefined if no input was
4747
* provided.
4848
*/
4949
export function timestampFromJson(
@@ -94,7 +94,7 @@ export function timestampFromJson(
9494
* @private
9595
* @internal
9696
* @param bytesValue The value to convert.
97-
* @return The value as expected by Protobuf JS.
97+
* @returns The value as expected by Protobuf JS.
9898
*/
9999
function bytesFromJson(bytesValue: string | Uint8Array): Uint8Array {
100100
if (typeof bytesValue === 'string') {
@@ -110,7 +110,7 @@ function bytesFromJson(bytesValue: string | Uint8Array): Uint8Array {
110110
* @private
111111
* @internal
112112
* @param proto The `firestore.v1.Value` proto.
113-
* @return The string value for 'valueType'.
113+
* @returns The string value for 'valueType'.
114114
*/
115115
export function detectValueType(proto: ProtobufJsValue): string {
116116
let valueType: string | undefined;
@@ -187,7 +187,7 @@ export function detectValueType(proto: ProtobufJsValue): string {
187187
* @private
188188
* @internal
189189
* @param proto The `firestore.v1.Value` proto.
190-
* @return The string value for 'valueType'.
190+
* @returns The string value for 'valueType'.
191191
*/
192192
export function detectGoogleProtobufValueType(
193193
proto: google.protobuf.IValue,
@@ -229,7 +229,7 @@ export function detectGoogleProtobufValueType(
229229
* @private
230230
* @internal
231231
* @param fieldValue The `firestore.v1.Value` in Proto3 JSON format.
232-
* @return The `firestore.v1.Value` in Protobuf JS format.
232+
* @returns The `firestore.v1.Value` in Protobuf JS format.
233233
*/
234234
export function valueFromJson(fieldValue: api.IValue): api.IValue {
235235
const valueType = detectValueType(fieldValue);
@@ -288,7 +288,7 @@ export function valueFromJson(fieldValue: api.IValue): api.IValue {
288288
* @private
289289
* @internal
290290
* @param document An object with IValues in Proto3 JSON format.
291-
* @return The object in Protobuf JS format.
291+
* @returns The object in Protobuf JS format.
292292
*/
293293
export function fieldsFromJson(document: ApiMapValue): ApiMapValue {
294294
const result: ApiMapValue = {};

dev/src/document-change.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export class DocumentChange<
181181
* value.
182182
*
183183
* @param {*} other The value to compare against.
184-
* @return true if this `DocumentChange` is equal to the provided value.
184+
* @returns true if this `DocumentChange` is equal to the provided value.
185185
*/
186186
isEqual(other: firestore.DocumentChange<AppModelType, DbModelType>): boolean {
187187
if (this === other) {

dev/src/document.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export class DocumentSnapshot<
158158
* @internal
159159
* @param ref The reference to the document.
160160
* @param obj The object to store in the DocumentSnapshot.
161-
* @return The created DocumentSnapshot.
161+
* @returns The created DocumentSnapshot.
162162
*/
163163
static fromObject<AppModelType, DbModelType extends firestore.DocumentData>(
164164
ref: DocumentReference<AppModelType, DbModelType>,
@@ -177,7 +177,7 @@ export class DocumentSnapshot<
177177
* @internal
178178
* @param ref The reference to the document.
179179
* @param data The field/value map to expand.
180-
* @return The created DocumentSnapshot.
180+
* @returns The created DocumentSnapshot.
181181
*/
182182
static fromUpdateMap<
183183
AppModelType,
@@ -552,7 +552,7 @@ export class DocumentSnapshot<
552552
* equal to the provided value.
553553
*
554554
* @param {*} other The value to compare against.
555-
* @return {boolean} true if this `DocumentSnapshot` is equal to the provided
555+
* @returns {boolean} true if this `DocumentSnapshot` is equal to the provided
556556
* value.
557557
*/
558558
isEqual(
@@ -783,7 +783,7 @@ export class DocumentMask {
783783
*
784784
* @private
785785
* @internal
786-
* @return {boolean} Whether this document mask is empty.
786+
* @returns {boolean} Whether this document mask is empty.
787787
*/
788788
get isEmpty(): boolean {
789789
return this._sortedPaths.length === 0;
@@ -835,7 +835,7 @@ export class DocumentMask {
835835
* @private
836836
* @internal
837837
* @param fieldPath The field path to test.
838-
* @return Whether this document mask contains 'fieldPath'.
838+
* @returns Whether this document mask contains 'fieldPath'.
839839
*/
840840
contains(fieldPath: FieldPath): boolean {
841841
for (const sortedPath of this._sortedPaths) {
@@ -858,7 +858,7 @@ export class DocumentMask {
858858
* @private
859859
* @internal
860860
* @param data An object to filter.
861-
* @return A shallow copy of the object filtered by this document mask.
861+
* @returns A shallow copy of the object filtered by this document mask.
862862
*/
863863
applyTo(data: firestore.DocumentData): firestore.DocumentData {
864864
/*!

dev/src/field-value.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export class FieldValue implements firestore.FieldValue {
130130
* Returns a sentinel used with set(), create() or update() to include a
131131
* server-generated timestamp in the written data.
132132
*
133-
* @return {FieldValue} The FieldValue sentinel for use in a call to set(),
133+
* @returns {FieldValue} The FieldValue sentinel for use in a call to set(),
134134
* create() or update().
135135
*
136136
* @example
@@ -164,7 +164,7 @@ export class FieldValue implements firestore.FieldValue {
164164
* not yet exist, the transformation will set the field to the given value.
165165
*
166166
* @param {number} n The value to increment by.
167-
* @return {FieldValue} The FieldValue sentinel for use in a call to set(),
167+
* @returns {FieldValue} The FieldValue sentinel for use in a call to set(),
168168
* create() or update().
169169
*
170170
* @example
@@ -195,7 +195,7 @@ export class FieldValue implements firestore.FieldValue {
195195
* exactly the specified elements.
196196
*
197197
* @param {...*} elements The elements to union into the array.
198-
* @return {FieldValue} The FieldValue sentinel for use in a call to set(),
198+
* @returns {FieldValue} The FieldValue sentinel for use in a call to set(),
199199
* create() or update().
200200
*
201201
* @example
@@ -224,7 +224,7 @@ export class FieldValue implements firestore.FieldValue {
224224
* an array it will be overwritten with an empty array.
225225
*
226226
* @param {...*} elements The elements to remove from the array.
227-
* @return {FieldValue} The FieldValue sentinel for use in a call to set(),
227+
* @returns {FieldValue} The FieldValue sentinel for use in a call to set(),
228228
* create() or update().
229229
*
230230
* @example
@@ -249,7 +249,7 @@ export class FieldValue implements firestore.FieldValue {
249249
* Returns true if this `FieldValue` is equal to the provided value.
250250
*
251251
* @param {*} other The value to compare against.
252-
* @return {boolean} true if this `FieldValue` is equal to the provided value.
252+
* @returns {boolean} true if this `FieldValue` is equal to the provided value.
253253
*
254254
* @example
255255
* ```
@@ -316,7 +316,7 @@ export abstract class FieldTransform extends FieldValue {
316316
*
317317
* @param serializer The Firestore serializer.
318318
* @param fieldPath The field path to apply this transformation to.
319-
* @return The 'FieldTransform' proto message.
319+
* @returns The 'FieldTransform' proto message.
320320
*/
321321
abstract toProto(
322322
serializer: Serializer,

dev/src/geo-point.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class GeoPoint implements Serializable, firestore.GeoPoint {
8484
* Returns true if this `GeoPoint` is equal to the provided value.
8585
*
8686
* @param {*} other The value to compare against.
87-
* @return {boolean} true if this `GeoPoint` is equal to the provided value.
87+
* @returns {boolean} true if this `GeoPoint` is equal to the provided value.
8888
*/
8989
isEqual(other: firestore.GeoPoint): boolean {
9090
return (

0 commit comments

Comments
 (0)