typesafe-dynamodb
typesafe-dynamodb copied to clipboard
Compilation errors in test/v3-document.test.ts
Hello,
I just clone the project, open it in vscode and run pnpm install.
I got a lot of compilation errors in test/v3-document.test.ts in vscode
Property 'Item' does not exist on type 'ServiceOutputTypes'.
Property 'Item' does not exist on type 'BatchExecuteStatementCommandOutput'.ts(2339)
Same errors in command line:
pnpm run test
....
FAIL test/v3-document.test.ts
● Test suite failed to run
test/v3-document.test.ts:53:7 - error TS2339: Property 'Item' does not exist on type 'ServiceOutputTypes'.
Property 'Item' does not exist on type 'BatchExecuteStatementCommandOutput'.
53 get.Item?.key;
~~~~
test/v3-document.test.ts:79:7 - error TS2339: Property 'Attributes' does not exist on type 'ServiceOutputTypes'.
Property 'Attributes' does not exist on type 'BatchExecuteStatementCommandOutput'.
79 put.Attributes?.key;
~~~~~~~~~~
test/v3-document.test.ts:101:7 - error TS2339: Property 'Attributes' does not exist on type 'ServiceOutputTypes'.
Property 'Attributes' does not exist on type 'BatchExecuteStatementCommandOutput'.
101 del.Attributes?.key;
~~~~~~~~~~
test/v3-document.test.ts:126:9 - error TS2339: Property 'Items' does not exist on type 'ServiceOutputTypes'.
Property 'Items' does not exist on type 'BatchExecuteStatementCommandOutput'.
126 query.Items?.[0].key;
~~~~~
test/v3-document.test.ts:189:16 - error TS2339: Property 'Attributes' does not exist on type 'ServiceOutputTypes'.
Property 'Attributes' does not exist on type 'BatchExecuteStatementCommandOutput'.
189 returnAllNew.Attributes?.key?.length;
~~~~~~~~~~
test/v3-document.test.ts:202:16 - error TS2339: Property 'Attributes' does not exist on type 'ServiceOutputTypes'.
Property 'Attributes' does not exist on type 'BatchExecuteStatementCommandOutput'.
202 returnAllOld.Attributes?.key?.length;
~~~~~~~~~~
test/v3-document.test.ts:215:20 - error TS2339: Property 'Attributes' does not exist on type 'ServiceOutputTypes'.
Property 'Attributes' does not exist on type 'BatchExecuteStatementCommandOutput'.
215 returnUpdatedNew.Attributes?.key?.length;
~~~~~~~~~~
test/v3-document.test.ts:228:20 - error TS2339: Property 'Attributes' does not exist on type 'ServiceOutputTypes'.
Property 'Attributes' does not exist on type 'BatchExecuteStatementCommandOutput'.
228 returnUpdatedOld.Attributes?.key?.length;
~~~~~~~~~~