Skip to content

Commit d3eed35

Browse files
committed
Add Bytes to arg type for trim
1 parent f607f00 commit d3eed35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firestore/src/lite-api/expressions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ export abstract class Expression implements ProtoValueSerializable, UserData {
10421042
* trimmed from the input. If not specified, then whitespace will be trimmed.
10431043
* @return A new `Expr` representing the trimmed string or byte array.
10441044
*/
1045-
trim(valueToTrim?: string | Expression): FunctionExpression {
1045+
trim(valueToTrim?: string | Expression | Bytes): FunctionExpression {
10461046
const args: Expression[] = [this];
10471047
if (valueToTrim) {
10481048
args.push(valueToDefaultExpr(valueToTrim));

0 commit comments

Comments
 (0)