UNPKG

dynamodb-toolbox

Version:

Lightweight and type-safe query builder for DynamoDB and TypeScript.

12 lines (11 loc) 723 B
import type { Condition } from '../../../entity/actions/parseCondition/index.js'; import type { Entity } from '../../../entity/index.js'; import type { ReturnValuesOnConditionFalseOption } from '../../../options/returnValuesOnConditionFalse.js'; import type { TransactWriteItem } from '../transactWrite/transaction.js'; export interface ConditionCheckOptions { returnValuesOnConditionFalse?: ReturnValuesOnConditionFalseOption; tableName?: string; } type OptionsParser = <ENTITY extends Entity>(entity: ENTITY, condition: Condition<ENTITY>, options?: ConditionCheckOptions) => Omit<NonNullable<TransactWriteItem['ConditionCheck']>, 'TableName' | 'Key'>; export declare const parseOptions: OptionsParser; export {};