UNPKG

dynamodb-toolbox

Version:

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

14 lines (13 loc) 625 B
import type { EntityPaths } from '../../../../entity/actions/parsePaths/index.js'; import type { Entity } from '../../../../entity/index.js'; import type { TransactGetItem } from '../transaction.js'; export type GetTransactionOptions<ENTITY extends Entity = Entity> = { tableName?: string; } & ({ attributes?: undefined; } | { attributes: EntityPaths<ENTITY>[]; }); type OptionsParser = <ENTITY extends Entity>(entity: ENTITY, GetItemTransactionOptions: GetTransactionOptions<ENTITY>) => Omit<NonNullable<TransactGetItem['Get']>, 'TableName' | 'Key'>; export declare const parseOptions: OptionsParser; export {};