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,
I had the same error and I fixed it with this configuration:
File: tsconfig.json
{ "compilerOptions": { "target": "es2015", "module": "commonjs", "strict": true, "esModuleInterop": true } }