coderaiser/putout

[typescript/convert-generic-to-shorthand]: Fixes an Array of Functions incorrectly.

ElPrudi opened this issue · 2 comments

This rules fixes this array:

const x: Array<(x: number) => x> = []

in correctly to this:

const x: (x: number) => x[] = []

But it should actually fix to this:

const x: ((x: number) => x)[]

Thanks! Just fixed 🎉 ! Is it works for you?

It works now. Thank you very much :)