UNPKG

duenamodb

Version:

Simple, strongly-typed helpers around the AWS SDK DynamoDB client.

14 lines (13 loc) 846 B
import type { DynamoDBTypes } from "./types"; export declare const createTableFunctions: <Attributes extends DynamoDBTypes, TPKN extends keyof Attributes = keyof Attributes, TSKN extends keyof Attributes = keyof Attributes>({ tablename, partitionKeyName, sortKeyName, }: { tablename: string; partitionKeyName: TPKN; sortKeyName?: TSKN | undefined; }) => { scanItems: import("./scan").ScanItemsFunction<Attributes>; putItem: import("./put").PutItemFunction<Attributes>; updateItem: import("./update").UpdateItemFunction<Attributes>; getItem: import("./get").GetItemFunction<Attributes, Attributes[TPKN], Attributes[TSKN]>; deleteItem: import("./delete").DeleteItemFunction<Attributes[TPKN], Attributes[TSKN]>; queryItems: import("./query").QueryItemsFunction<Attributes, Attributes[TPKN], Attributes[TSKN]>; };