firebase-functions 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/params/types.d.ts +1 -1
- package/lib/params/types.js +1 -1
- package/package.json +1 -1
package/lib/params/types.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export declare class CompareExpression<T extends string | number | boolean | str
|
|
|
26
26
|
constructor(cmp: "==" | "!=" | ">" | ">=" | "<" | "<=", lhs: Expression<T>, rhs: T | Expression<T>);
|
|
27
27
|
toString(): string;
|
|
28
28
|
/** Returns a TernaryExpression which can resolve to one of two values, based on the resolution of this comparison. */
|
|
29
|
-
|
|
29
|
+
thenElse<retT extends string | number | boolean | string[]>(ifTrue: retT | Expression<retT>, ifFalse: retT | Expression<retT>): TernaryExpression<retT>;
|
|
30
30
|
}
|
|
31
31
|
/** @hidden */
|
|
32
32
|
declare type ParamValueType = "string" | "list" | "boolean" | "int" | "float" | "secret";
|
package/lib/params/types.js
CHANGED
|
@@ -119,7 +119,7 @@ class CompareExpression extends Expression {
|
|
|
119
119
|
return `${this.lhs} ${this.cmp} ${rhsStr}`;
|
|
120
120
|
}
|
|
121
121
|
/** Returns a TernaryExpression which can resolve to one of two values, based on the resolution of this comparison. */
|
|
122
|
-
|
|
122
|
+
thenElse(ifTrue, ifFalse) {
|
|
123
123
|
return new TernaryExpression(this, ifTrue, ifFalse);
|
|
124
124
|
}
|
|
125
125
|
}
|