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 problem and this saved me from the problem in second:
write in console this:
npm i --save bluebird npm i --save-dev @types/bluebird @types/core-js@0.9.36
in the file where the problem is copy paste this:
import * as Promise from 'bluebird';