title: AWS DynamoDB in typescript: No response or error when trying to insert item
body: <p>I'm setting up a node.js server in Typescript and I have a DynamoDB on AWS, all I need to do is create/update items with 'put' and retrieve with them with 'get'.</p>
  
  <p>I've made a test server in pure javascript, and everything works fine, but when I try to the exact same operation in Typescript, the callback doesn't get called, and I don't get any errors in the console.</p>
  
  <pre class="lang-js prettyprint-override"><code>import { DynamoDB } from 'aws-sdk'
  
  const client = new DynamoDB.DocumentClient({ region: 'eu-west-3'})
  const params = {
    TableName: "Movies",
    Item: {
      "primary": "foo",
      "range": 123,
      "text": "bar"
    }
  }
  
  client.put(params, (err, data) =&gt; {
    console.log('done')
  })
  </code></pre>
  
  <p>Compiled Javascript:</p>
  
  <pre class="lang-js prettyprint-override"><code>"use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  const aws_sdk_1 = require("aws-sdk");
  const client = new aws_sdk_1.DynamoDB.DocumentClient();
  const params = {
      TableName: "Movies",
      Item: {
          "primary": "foo",
          "range": 123,
          "text": "bar"
      }
  };
  client.put(params).promise().then(res =&gt; console.log(res)).catch(err =&gt; console.log(err)).finally(() =&gt; console.log('finally'));
  //# sourceMappingURL=app.js.map
  </code></pre>