google-maps-api-typings icon indicating copy to clipboard operation
google-maps-api-typings copied to clipboard

Cannot find name 'PromiseConstructor'

Open cvrabie opened this issue 5 years ago • 1 comments

When using @types/google__maps in a project, tsc seems to work without issue, however both YousefED/typescript-json-schema and vega/ts-json-schema-generator fail with Cannot find name 'PromiseConstructor'.

This happens despite the fact that the types for which a schema is generated have nothing to do with this project.

I can't tell if this really an issue with the schema generators of with this project. I'm opening this issue because looking in index.d.ts PromiseConstructor is indeed not defined and this is the only dependency with which I seem to be having issues.

cvrabie avatar Nov 05 '19 14:11 cvrabie

According to this http://jbeard4.github.io/SCION-CORE/interfaces/_nvm_versions_v8_4_0_lib_node_modules_typedoc_node_modules_typescript_lib_lib_es2015_promise_d.promiseconstructor.html PromiseConstructor should be part of ES2015 library. My project is targeting EsNext. Does google-maps-api-typings need to provide a tsconfig, or is this an issue in the @typeings definition at https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/google__maps/tsconfig.json

cvrabie avatar Nov 05 '19 16:11 cvrabie