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

javascript types wrong with Array.prototype.flat/faltMap #1605

Open
sertonix opened this issue Feb 26, 2022 · 0 comments
Open

javascript types wrong with Array.prototype.flat/faltMap #1605

sertonix opened this issue Feb 26, 2022 · 0 comments

Comments

@sertonix
Copy link

When using flat or flatMap in a javascript file the type is set to any. The type behaves as if the function were unknown.

Example:

const test = [[1]].flat();

test should have the type number[] but has any instead.

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