aws-sdk-js: Dynamo DocumentClient is not exposed in TypeScript definitions

The DocumentClient class isn’t exposed via the TypeScript definitions. I believe the following should work but it does not.

const client: AWS.DynamoDB.DocumentClient = new AWS.DynamoDB.DocumentClient();

I notice you do some code generation with typescript files so I thought I’d check in with you before doing a PR.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 4
  • Comments: 23 (7 by maintainers)

Most upvoted comments

@midknight41 Same issue here. Any updates?

There are two issues here actually. I’ve defined it badly.

  1. You cannot explicitly state the variable type
  2. The AWS.DynamoDB namespace does not contain a DocumentClient class. new AWS.DynamoDB.DocumentClient() gives a error.

I’ll have a peek at the other issue first I think.