UNPKG

dynamodb-toolbox

Version:

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

13 lines (12 loc) 765 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 DeleteTransactionOptions<ENTITY extends Entity = Entity> { condition?: Condition<ENTITY>; returnValuesOnConditionFalse?: ReturnValuesOnConditionFalseOption; tableName?: string; } type OptionsParser = <ENTITY extends Entity>(entity: ENTITY, options: DeleteTransactionOptions<ENTITY>) => Omit<NonNullable<TransactWriteItem['Delete']>, 'TableName' | 'Key'>; export declare const parseOptions: OptionsParser; export {};