Skip to content

Commit 2115c11

Browse files
committed
feat: Fixed types
1 parent 7901deb commit 2115c11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ddb.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export function scan(
4545
): Promise<ScanCommandOutput> {
4646
const command = new ScanCommand(params);
4747

48+
// @ts-ignore
4849
return ddbv3Client(credentials).send(command);
4950
}
5051

@@ -55,7 +56,7 @@ export async function getTableItemsCount(
5556
const command = new DescribeTableCommand({TableName: tableName});
5657
const resp = await ddbv3Client(credentials).send(command);
5758

58-
return resp.Table!.ItemCount;
59+
return resp.Table!.ItemCount!;
5960
}
6061

6162
export function insertMany(
@@ -91,5 +92,6 @@ function batchWrite(
9192
ReturnItemCollectionMetrics: 'NONE',
9293
});
9394

95+
// @ts-ignore
9496
return ddbv3DocClient(credentials).send(command);
9597
}

0 commit comments

Comments
 (0)