@moicky/dynamodb 2.4.2 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,7 +27,7 @@ import { DynamoDBItem } from "../types";
27
27
  * );
28
28
  * ```
29
29
  */
30
- export declare function deleteItem(key: DynamoDBItem, args?: Partial<DeleteItemCommandInput>): Promise<DeleteItemCommandOutput>;
30
+ export declare function deleteItem<T extends DynamoDBItem = DynamoDBItem>(key: Partial<T>, args?: Partial<DeleteItemCommandInput>): Promise<DeleteItemCommandOutput>;
31
31
  type DeleteItemsArgs = Partial<BatchWriteItemCommandInput & {
32
32
  TableName?: string;
33
33
  }>;
@@ -63,5 +63,5 @@ type DeleteItemsArgs = Partial<BatchWriteItemCommandInput & {
63
63
  * );
64
64
  * ```
65
65
  */
66
- export declare function deleteItems(keys: DynamoDBItem[], args?: DeleteItemsArgs, retry?: number): Promise<void>;
66
+ export declare function deleteItems<T extends DynamoDBItem = DynamoDBItem>(keys: Partial<T>[], args?: DeleteItemsArgs, retry?: number): Promise<void>;
67
67
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moicky/dynamodb",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "Contains a collection of convenience functions for working with AWS DynamoDB",