Signature:
export declare abstract class Expression<T extends string | number | boolean | string[]>
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| [EXPRESSION_TAG] | boolean |
Methods
| Method | Modifiers | Description |
|---|---|---|
| [Symbol.hasInstance](instance) | static |
Handle the "Dual-Package Hazard" .We implement custom Symbol.hasInstance to so CJS/ESM Expression instances are recognized as the same type. |
| toCEL() | Returns the expression's representation as a braced CEL expression. | |
| toJSON() | Returns the expression's representation as JSON. | |
| value() | Returns the expression's runtime value, based on the CLI's resolution of parameters. |
params.Expression.[EXPRESSION_TAG]
Signature:
get [EXPRESSION_TAG](): boolean;
params.Expression.[Symbol.hasInstance]()
Handle the "Dual-Package Hazard" .
We implement custom Symbol.hasInstance to so CJS/ESM Expression instances are recognized as the same type.
Signature:
static [Symbol.hasInstance](instance: unknown): boolean;
Parameters
| Parameter | Type | Description |
|---|---|---|
| instance | unknown |
Returns:
boolean
params.Expression.toCEL()
Returns the expression's representation as a braced CEL expression.
Signature:
toCEL(): string;
Returns:
string
params.Expression.toJSON()
Returns the expression's representation as JSON.
Signature:
toJSON(): string;
Returns:
string
params.Expression.value()
Returns the expression's runtime value, based on the CLI's resolution of parameters.
Signature:
value(): T;
Returns:
T