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 got rid of this same error in index.ts with these combined properties:
index.ts
In tsconfig.json:
"compilerOptions": { "target": "ES6"
And in package.json:
"main": "index.ts", "scripts": { "start": "tsc -p tsconfig.json && node index.js"