Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import 'arraync' adds async function names to array properties #3

Open
doxic012 opened this issue Apr 9, 2019 · 0 comments
Open

import 'arraync' adds async function names to array properties #3

doxic012 opened this issue Apr 9, 2019 · 0 comments

Comments

@doxic012
Copy link

doxic012 commented Apr 9, 2019

When I import the code using import 'arraync' in typescript, it permanently adds all async array function names to any array props resulting in the following when I try to iterate an array using a for...in-loop in js:

var a = [1,2,3]; for(var item in a) console.log(item);

results in:
image


This causes a lot of problems for me, because accessing elements using the index is always broken. Is there a quick fix for this without searching the whole transpiled code? ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant