We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7901deb commit 2115c11Copy full SHA for 2115c11
src/ddb.ts
@@ -45,6 +45,7 @@ export function scan(
45
): Promise<ScanCommandOutput> {
46
const command = new ScanCommand(params);
47
48
+ // @ts-ignore
49
return ddbv3Client(credentials).send(command);
50
}
51
@@ -55,7 +56,7 @@ export async function getTableItemsCount(
55
56
const command = new DescribeTableCommand({TableName: tableName});
57
const resp = await ddbv3Client(credentials).send(command);
58
- return resp.Table!.ItemCount;
59
+ return resp.Table!.ItemCount!;
60
61
62
export function insertMany(
@@ -91,5 +92,6 @@ function batchWrite(
91
92
ReturnItemCollectionMetrics: 'NONE',
93
});
94
95
96
return ddbv3DocClient(credentials).send(command);
97
0 commit comments