@moicky/dynamodb 2.4.0 → 2.4.1

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.
@@ -26,7 +26,7 @@ import { DynamoDBItem } from "../types";
26
26
  * );
27
27
  * ```
28
28
  */
29
- export declare function getItem<T extends DynamoDBItem = DynamoDBItem>(key: T, args?: Partial<GetItemCommandInput>): Promise<T | undefined>;
29
+ export declare function getItem<T extends DynamoDBItem = DynamoDBItem>(key: Partial<T>, args?: Partial<GetItemCommandInput>): Promise<T | undefined>;
30
30
  type GetItemsArgs = Partial<BatchGetItemCommandInput & {
31
31
  TableName?: string;
32
32
  }>;
@@ -59,7 +59,7 @@ type GetItemsArgs = Partial<BatchGetItemCommandInput & {
59
59
  * );
60
60
  * ```
61
61
  */
62
- export declare function getItems<T extends DynamoDBItem = DynamoDBItem>(keys: T[], args?: GetItemsArgs, retry?: number): Promise<Array<T | undefined>>;
62
+ export declare function getItems<T extends DynamoDBItem = DynamoDBItem>(keys: Partial<T>[], args?: GetItemsArgs, retry?: number): Promise<Array<T | undefined>>;
63
63
  /**
64
64
  * Retrieves all items from the DynamoDB table.
65
65
  * @param args - The additional arguments to override or specify for {@link ScanCommandInput}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moicky/dynamodb",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
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",