@nova-odm/expressions
Version:
Composable expression objects for Amazon DynamoDB
18 lines (17 loc) • 767 B
TypeScript
import { AttributeBearingExpression } from "./AttributeBearingExpression";
import { AttributePath } from "./AttributePath";
import { ExpressionAttributes } from "./ExpressionAttributes";
/**
* An object representing a DynamoDB function expression.
*/
export declare class FunctionExpression implements AttributeBearingExpression {
readonly name: string;
readonly [Symbol.toStringTag] = "AmazonDynamoDbFunctionExpression";
readonly args: Array<AttributePath | any>;
constructor(name: string, ...args: Array<AttributePath | any>);
serialize(attributes: ExpressionAttributes): string;
/**
* Evaluate whether the provided value is a FunctionExpression object.
*/
static isFunctionExpression(arg: any): arg is FunctionExpression;
}