For TypeScript 3.3.3
, just add es2018.promise
to your tsconfig.json
– compilerOptions.lib
config like this:
"lib": ["es2015", "es2016", "dom", "es2018.promise"]
If you use vscode
, maybe you should reload window
after adding this option to your tsconfig.json
file