Skip to content

Commit 534545d

Browse files
committed
format
1 parent f00ca5b commit 534545d

2 files changed

Lines changed: 37 additions & 37 deletions

File tree

handwritten/firestore/dev/src/pipelines/expression.ts

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2878,40 +2878,40 @@ export abstract class Expression
28782878

28792879
/**
28802880
* @beta
2881-
* Creates an expression that returns the `elseValue` argument if this expression results in a null value, else
2881+
* Creates an expression that returns the `elseValue` argument if this expression evaluates to null, else
28822882
* return the result of this expression evaluation.
28832883
*
28842884
* @remarks
2885-
* This function provides a fallback for both absent and explicit null values. In contrast, {@link ifAbsent}
2885+
* This function provides a fallback for both absent and explicit null values. In contrast, {@link Expression#ifAbsent}
28862886
* only triggers for missing fields.
28872887
*
28882888
* @example
28892889
* ```typescript
2890-
* // Returns the user's preferred name, or if that is null or absent, returns their full name.
2890+
* // Returns the user's preferred name, or if that is null, returns their full name.
28912891
* field("preferredName").ifNull(field("fullName"))
28922892
* ```
28932893
*
2894-
* @param elseExpression The Expression that will be evaluated if this Expression evaluates to a null or absent value.
2894+
* @param elseExpression The Expression that will be evaluated if this Expression evaluates to null.
28952895
* @returns A new [Expression] representing the ifNull operation.
28962896
*/
28972897
ifNull(elseExpression: Expression): FunctionExpression;
28982898

28992899
/**
29002900
* @beta
2901-
* Creates an expression that returns the `elseValue` argument if this expression results in a null value, else
2901+
* Creates an expression that returns the `elseValue` argument if this expression evaluates to null, else
29022902
* return the result of this expression evaluation.
29032903
*
29042904
* @remarks
2905-
* This function provides a fallback for both absent and explicit null values. In contrast, {@link ifAbsent}
2905+
* This function provides a fallback for both absent and explicit null values. In contrast, {@link Expression#ifAbsent}
29062906
* only triggers for missing fields.
29072907
*
29082908
* @example
29092909
* ```typescript
2910-
* // Returns the user's display name, or returns "Anonymous" if the field is null or absent.
2910+
* // Returns the user's display name, or returns "Anonymous" if the field is null.
29112911
* field("displayName").ifNull("Anonymous")
29122912
* ```
29132913
*
2914-
* @param elseValue The value that will be returned if this Expression evaluates to a null or absent value.
2914+
* @param elseValue The value that will be returned if this Expression evaluates to null.
29152915
* @returns A new [Expression] representing the ifNull operation.
29162916
*/
29172917
ifNull(elseValue: unknown): FunctionExpression;
@@ -9268,16 +9268,16 @@ export function ifAbsent(
92689268
*
92699269
* @remarks
92709270
* This function provides a fallback for both absent and explicit null values. In contrast,
9271-
* {@link ifAbsent} only triggers for missing fields.
9271+
* {@link Expression#ifAbsent} only triggers for missing fields.
92729272
*
92739273
* @example
92749274
* ```typescript
9275-
* // Returns the user's preferred name, or if that is null or absent, returns their full name.
9275+
* // Returns the user's preferred name, or if that is null, returns their full name.
92769276
* ifNull(field("preferredName"), field("fullName"))
92779277
* ```
92789278
*
9279-
* @param ifExpr The expression to check for null or absence.
9280-
* @param elseExpr The expression that will be evaluated and returned if `ifExpr` is null or absent.
9279+
* @param ifExpr The expression to check for null.
9280+
* @param elseExpr The expression that will be evaluated and returned if `ifExpr` is null.
92819281
* @returns A new `Expression` representing the ifNull operation.
92829282
*/
92839283
export function ifNull(
@@ -9292,16 +9292,16 @@ export function ifNull(
92929292
*
92939293
* @remarks
92949294
* This function provides a fallback for both absent and explicit null values. In contrast,
9295-
* {@link ifAbsent} only triggers for missing fields.
9295+
* {@link Expression#ifAbsent} only triggers for missing fields.
92969296
*
92979297
* @example
92989298
* ```typescript
9299-
* // Returns the user's display name, or returns "Anonymous" if the field is null or absent.
9299+
* // Returns the user's display name, or returns "Anonymous" if the field is null.
93009300
* ifNull(field("displayName"), "Anonymous")
93019301
* ```
93029302
*
9303-
* @param ifExpr The expression to check for null or absence.
9304-
* @param elseValue The value that will be returned if `ifExpr` evaluates to a null or absent value.
9303+
* @param ifExpr The expression to check for null.
9304+
* @param elseValue The value that will be returned if `ifExpr` evaluates to null.
93059305
* @returns A new `Expression` representing the ifNull operation.
93069306
*/
93079307
export function ifNull(
@@ -9316,17 +9316,17 @@ export function ifNull(
93169316
*
93179317
* @remarks
93189318
* This function provides a fallback for both absent and explicit null values. In contrast,
9319-
* {@link ifAbsent} only triggers for missing fields.
9319+
* {@link Expression#ifAbsent} only triggers for missing fields.
93209320
*
93219321
* @example
93229322
* ```typescript
9323-
* // Returns the user's preferred name, or if that is null or absent, returns their full name.
9323+
* // Returns the user's preferred name, or if that is null, returns their full name.
93249324
* ifNull("preferredName", field("fullName"))
93259325
* ```
93269326
*
9327-
* @param ifFieldName The field to check for null or absence.
9327+
* @param ifFieldName The field to check for null.
93289328
* @param elseExpr The expression that will be evaluated and returned if `ifFieldName` is
9329-
* null or absent.
9329+
* null.
93309330
* @returns A new `Expression` representing the ifNull operation.
93319331
*/
93329332
export function ifNull(
@@ -9341,16 +9341,16 @@ export function ifNull(
93419341
*
93429342
* @remarks
93439343
* This function provides a fallback for both absent and explicit null values. In contrast,
9344-
* {@link ifAbsent} only triggers for missing fields.
9344+
* {@link Expression#ifAbsent} only triggers for missing fields.
93459345
*
93469346
* @example
93479347
* ```typescript
9348-
* // Returns the user's display name, or returns "Anonymous" if the field is null or absent.
9348+
* // Returns the user's display name, or returns "Anonymous" if the field is null.
93499349
* ifNull("displayName", "Anonymous")
93509350
* ```
93519351
*
9352-
* @param ifFieldName The field to check for null or absence.
9353-
* @param elseValue The value that will be returned if `ifFieldName` is null or absent.
9352+
* @param ifFieldName The field to check for null.
9353+
* @param elseValue The value that will be returned if `ifFieldName` is null.
93549354
* @returns A new `Expression` representing the ifNull operation.
93559355
*/
93569356
export function ifNull(

handwritten/firestore/types/firestore.d.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5456,7 +5456,7 @@ declare namespace FirebaseFirestore {
54565456

54575457
/**
54585458
* @beta
5459-
* Creates an expression that returns the `elseValue` argument if this expression results in a null value, else
5459+
* Creates an expression that returns the `elseValue` argument if this expression evaluates to null, else
54605460
* return the result of this expression evaluation.
54615461
*
54625462
* @remarks
@@ -5465,18 +5465,18 @@ declare namespace FirebaseFirestore {
54655465
*
54665466
* @example
54675467
* ```typescript
5468-
* // Returns the user's display name, or returns "Anonymous" if the field is null or absent.
5468+
* // Returns the user's display name, or returns "Anonymous" if the field is null.
54695469
* field("displayName").ifNull("Anonymous")
54705470
* ```
54715471
*
5472-
* @param elseValue The value that will be returned if this Expression evaluates to a null value.
5472+
* @param elseValue The value that will be returned if this Expression evaluates to null.
54735473
* @returns A new `Expression` representing the ifNull operation.
54745474
*/
54755475
ifNull(elseValue: unknown): FunctionExpression;
54765476

54775477
/**
54785478
* @beta
5479-
* Creates an expression that returns the `elseValue` argument if this expression results in a null value, else
5479+
* Creates an expression that returns the `elseValue` argument if this expression evaluates to null, else
54805480
* return the result of this expression evaluation.
54815481
*
54825482
* @remarks
@@ -5485,18 +5485,18 @@ declare namespace FirebaseFirestore {
54855485
*
54865486
* @example
54875487
* ```typescript
5488-
* // Returns the user's preferred name, or if that is null or absent, returns their full name.
5488+
* // Returns the user's preferred name, or if that is null, returns their full name.
54895489
* field("preferredName").ifNull(field("fullName"))
54905490
* ```
54915491
*
5492-
* @param elseExpression The Expression that will be evaluated if this Expression evaluates to a null value.
5492+
* @param elseExpression The Expression that will be evaluated if this Expression evaluates to null.
54935493
* @returns A new `Expression` representing the ifNull operation.
54945494
*/
54955495
ifNull(elseExpression: Expression): FunctionExpression;
54965496

54975497
/**
54985498
* @beta
5499-
* Creates an expression that Returns the first non-null, non-absent argument, without evaluating
5499+
* Creates an expression that returns the first non-null, non-absent argument, without evaluating
55005500
* the rest of the arguments. When all arguments are null or absent, returns the last argument.
55015501
*
55025502
* @example
@@ -10958,12 +10958,12 @@ declare namespace FirebaseFirestore {
1095810958
*
1095910959
* @example
1096010960
* ```typescript
10961-
* // Returns the user's preferred name, or if that is null or absent, returns their full name.
10961+
* // Returns the user's preferred name, or if that is null, returns their full name.
1096210962
* ifNull(field("preferredName"), field("fullName"))
1096310963
* ```
1096410964
*
1096510965
* @param ifExpr The expression to check for null.
10966-
* @param elseExpr The value that will be returned if `ifExpr` evaluates to a null value.
10966+
* @param elseExpr The value that will be returned if `ifExpr` evaluates to null.
1096710967
* @returns A new {@code Expression} representing the ifNull operation.
1096810968
*/
1096910969
export function ifNull(
@@ -10982,12 +10982,12 @@ declare namespace FirebaseFirestore {
1098210982
*
1098310983
* @example
1098410984
* ```typescript
10985-
* // Returns the user's display name, or returns "Anonymous" if the field is null or absent.
10985+
* // Returns the user's display name, or returns "Anonymous" if the field is null.
1098610986
* ifNull(field("displayName"), "Anonymous")
1098710987
* ```
1098810988
*
1098910989
* @param ifExpr The expression to check for null.
10990-
* @param elseValue The value that will be returned if `ifExpr` evaluates to a null value.
10990+
* @param elseValue The value that will be returned if `ifExpr` evaluates to null.
1099110991
* @returns A new {@code Expression} representing the ifNull operation.
1099210992
*/
1099310993
export function ifNull(
@@ -11006,7 +11006,7 @@ declare namespace FirebaseFirestore {
1100611006
*
1100711007
* @example
1100811008
* ```typescript
11009-
* // Returns the user's preferred name, or if that is null or absent, returns their full name.
11009+
* // Returns the user's preferred name, or if that is null, returns their full name.
1101011010
* ifNull("preferredName", field("fullName"))
1101111011
* ```
1101211012
*
@@ -11031,7 +11031,7 @@ declare namespace FirebaseFirestore {
1103111031
*
1103211032
* @example
1103311033
* ```typescript
11034-
* // Returns the user's display name, or returns "Anonymous" if the field is null or absent.
11034+
* // Returns the user's display name, or returns "Anonymous" if the field is null.
1103511035
* ifNull("displayName", "Anonymous")
1103611036
* ```
1103711037
*

0 commit comments

Comments
 (0)