Skip to content

Commit

Permalink
"Convert parameters to destructured object": enable for functions wit…
Browse files Browse the repository at this point in the history
…h just one parameter

Fixes microsoft#41753
  • Loading branch information
OliverJAsh committed Nov 29, 2021
1 parent 2e70675 commit c5bae86
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1,7 +1,7 @@
/* @internal */
namespace ts.refactor.convertParamsToDestructuredObject {
const refactorName = "Convert parameters to destructured object";
const minimumParameterLength = 2;
const minimumParameterLength = 1;
const refactorDescription = getLocaleSpecificMessage(Diagnostics.Convert_parameters_to_destructured_object);

const toDestructuredAction = {
Expand Down

0 comments on commit c5bae86

Please sign in to comment.