@@ -698,7 +698,8 @@ export abstract class Expr implements ProtoValueSerializable, UserData {
698698 }
699699
700700 /**
701- * Creates an expression that checks if a field exists in the document.
701+ * Creates an expression that checks if this expression evaluates to a name of
702+ * the field that exists.
702703 *
703704 * ```typescript
704705 * // Check if the document has a field named "phoneNumber"
@@ -3139,7 +3140,7 @@ export function isAbsent(value: Expr | string): BooleanExpr {
31393140/**
31403141 * @beta
31413142 *
3142- * Creates an expression that checks if an expression evaluates to 'NaN' (Not a Number) .
3143+ * Creates an expression that checks if tbe result of an expression is null .
31433144 *
31443145 * ```typescript
31453146 * // Check if the result of a calculation is NaN
@@ -3154,7 +3155,7 @@ export function isNull(value: Expr): BooleanExpr;
31543155/**
31553156 * @beta
31563157 *
3157- * Creates an expression that checks if a field's value evaluates to 'NaN' (Not a Number) .
3158+ * Creates an expression that checks if tbe value of a field is null .
31583159 *
31593160 * ```typescript
31603161 * // Check if the result of a calculation is NaN
@@ -4951,7 +4952,7 @@ export function logicalMinimum(
49514952 * ```
49524953 *
49534954 * @param value An expression evaluates to the name of the field to check.
4954- * @return A new {@code Expr } representing the 'exists' check.
4955+ * @return A new {@code BooleanExpr } representing the 'exists' check.
49554956 */
49564957export function exists ( value : Expr ) : BooleanExpr ;
49574958
@@ -4966,7 +4967,7 @@ export function exists(value: Expr): BooleanExpr;
49664967 * ```
49674968 *
49684969 * @param fieldName The field name to check.
4969- * @return A new {@code Expr } representing the 'exists' check.
4970+ * @return A new {@code BooleanExpr } representing the 'exists' check.
49704971 */
49714972export function exists ( fieldName : string ) : BooleanExpr ;
49724973export function exists ( valueOrField : Expr | string ) : BooleanExpr {
@@ -4984,7 +4985,7 @@ export function exists(valueOrField: Expr | string): BooleanExpr {
49844985 * ```
49854986 *
49864987 * @param value The expression to check.
4987- * @return A new {@code Expr } representing the 'isNaN' check.
4988+ * @return A new {@code BooleanExpr } representing the 'isNaN' check.
49884989 */
49894990export function isNan ( value : Expr ) : BooleanExpr ;
49904991
@@ -4999,7 +5000,7 @@ export function isNan(value: Expr): BooleanExpr;
49995000 * ```
50005001 *
50015002 * @param fieldName The name of the field to check.
5002- * @return A new {@code Expr } representing the 'isNaN' check.
5003+ * @return A new {@code BooleanExpr } representing the 'isNaN' check.
50035004 */
50045005export function isNan ( fieldName : string ) : BooleanExpr ;
50055006export function isNan ( value : Expr | string ) : BooleanExpr {
@@ -5017,7 +5018,7 @@ export function isNan(value: Expr | string): BooleanExpr {
50175018 * ```
50185019 *
50195020 * @param stringExpression An expression evaluating to a string value, which will be reversed.
5020- * @return A new {@code Expr } representing the reversed string.
5021+ * @return A new {@code BooleanExpr } representing the reversed string.
50215022 */
50225023export function reverse ( stringExpression : Expr ) : FunctionExpr ;
50235024
0 commit comments