This repository has been archived by the owner on May 15, 2024. It is now read-only.
Create Function with Types crashes when argument is an array #17
Labels
🐛 Bug
Something isn't working
Describe the bug
When using the "Create function" (with types) action on a function that takes an array the action is not provided as a code fix. If I execute it via the command palette I receive an error:
Select
doSomething
and perform the action ->How to reproduce
Just copy the above code into a .ts file and perform the action on
doSomething
.Expected behavior
It should generate the function with the correct param type, in this case
number[]
.Additional information
Here's my installed TS versions if it helps:
The text was updated successfully, but these errors were encountered: