typescript - Functions higher order with async and await -


compiling following lines tsc

import 'core-js/shim'; import { } 'async'; 

the compiler quits error message:

(...)/npm/node_modules/typescript/lib/lib.esnext.asynciterable.d.ts(32,11): error ts2428: declarations of 'asynciterator' must have identical type parameters.
(...)/npm/node_modules/typescript/lib/lib.esnext.asynciterable.d.ts(39,31): error ts2314: generic type 'asynciterator' requires 2 type argument(s).
(...)npm/node_modules/typescript/lib/lib.esnext.asynciterable.d.ts(42,44): error ts2314: generic type 'asynciterator' requires 2 type argument(s).
node_modules/@types/async/index.d.ts(15,11): error ts2428: declarations of 'asynciterator' must have identical type parameters.

does know going wrong?

my tscongig.json

json { "compileroptions": { "target": "es2015", "module": "commonjs", "sourcemap": true, "emitdecoratormetadata": true, "experimentaldecorators": true, "strictnullchecks": true, "stripinternal": true, "declaration": true, "outdir": "./dist", "lib": [ "es2015", "dom", "esnext.asynciterable" ], "typeroots": [ "./node_modules/@types" ], "types": [ "node" ] }, "files": [ "./src/index.ts" ] }


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -