I am trying to use Typescript for my AWS Lambda and i am getting the following errors where ever I use promises.
error TS2693: \'Promise\' only refers to a type,
Had the same issue with typescript and the aws-sdk. The solve was to change the target to es6.
aws-sdk
es6
My complete tsconfig.json file:
tsconfig.json
{ compilerOptions: { outDir: ./dist/, sourceMap: true, noImplicitAny: true, module: commonjs, target: es6, jsx: react, allowJs: true }, include: [ ./src/**/* ] }