UNPKG

@nerdware/ddb-single-table

Version:

A schema-based DynamoDB modeling tool, high-level API, and type-generator built to supercharge single-table designs!⚡

10 lines 636 B
import type { WhereQueryOperator, WhereQueryComparand } from "./types/index.js"; /** * Assertion type-guard that ensures the `comparandValue` is valid for the given `operator`. * * @param operator The WhereQuery expression operator. * @param comparandValue The value to check. * @throws {InvalidExpressionError} if the value is not a valid comparand for the operator. */ export declare function assertIsValidWhereQueryComparand<Operator extends WhereQueryOperator>(operator: Operator, comparandValue: unknown): asserts comparandValue is WhereQueryComparand<Operator>; //# sourceMappingURL=assertIsValidWhereQueryComparand.d.ts.map