awslabs / dynamodb-data-mapper-js

A schema-based data mapper for Amazon DynamoDB.
https://awslabs.github.io/dynamodb-data-mapper-js/
Apache License 2.0
817 stars 106 forks source link

TS error in @aws/dynamodb-data-mapper/build/constants.d.ts #121

Closed artemkanaki closed 5 years ago

artemkanaki commented 5 years ago

Hi there! In the file @aws/dynamodb-data-mapper/build/constants.d.ts you have TS error: "error TS2304: Cannot find name 'AsyncIterable'."

package version: 0.7.3

ryanmitts commented 5 years ago

If you are targeting Node 8 or later (es2017), then add the following to the lib section of your tsconfig file (this works for me).

Looks like this library has a polyfill for it anyway.

"lib": [
      "es2017",
      "esnext.asynciterable"
    ],