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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -