Posts

Showing posts from January 20, 2019

Taurisano

Image
Coordenadas: 39° 57' N 18° 10' E Taurisano      Comuna    Taurisano Localização de Taurisano na Itália Coordenadas 39° 57' N 18° 10' E Região Apúlia Província Lecce Área  - Total 23 km² Altitude 110 m População  - Total 12 349     • Densidade 537 hab./km² Outros dados Comunas limítrofes Acquarica del Capo, Ruffano, Ugento Código ISTAT 075084 Código cadastral L064 Código postal 73056 Prefixo telefônico 0833 Padroeiro   Sítio www.comune.taurisano.le.it Taurisano é uma comuna italiana da região da Puglia, província de Lecce, com cerca de 12.349 habitantes. Estende-se por uma área de 23 km², tendo uma densidade populacional de 537 hab/km². Faz fronteira com Acquarica del Capo, Ruffano, Ugento. [ 1 ] [ 2 ] [ 3 ] Demografia | Variação demográfica do município entre 1861 e 2011 [ 3 ] Fonte : Istituto Nazionale di Statist

typescript: error TS2693: 'Promise' only refers to a type, but is being used as a value here

Image
112 21 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, but is being used as a value here. I tried using the following variations in the code Using the Promise constructor responsePromise = new Promise((resolve, reject) => { return reject(new Error(`missing is needed data`)) }) using Promise.reject responsePromise = Promise.reject(new Error(`Unsupported method "${request.httpMethod}"`)); Versions Following are the versions in my dev dependencies: "typescript": "^2.2.2" "@types/aws-lambda": "0.0.9", "@types/core-js": "^0.9.40", "@types/node": "^7.0.12