You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type Test = {
new <T>(): T;
new <T>({ test: T }): T;
}
Currently gives This type parameter T is unused. one the first new line.
As the generic parameter is used there, I would expect it to work correctly.
(Note: identical overloads without the new keyword work fine
Environment information
Rule name
lint/correctness/noUnusedVariables
Playground link
https://biomejs.dev/playground/?attributePosition=multiline&code=dAB5AHAAZQAgAFQAZQBzAHQAIAA9ACAAewAKAAkAbgBlAHcAIAA8AFQAPgAoACkAOgAgAFQAOwAKAAkAbgBlAHcAIAA8AFQAPgAoAHsAIAB0AGUAcwB0ADoAIABUACAAfQApADoAIABUADsACgB9AA%3D%3D
Expected result
Currently gives
This type parameter T is unused.one the firstnewline.As the generic parameter is used there, I would expect it to work correctly.
(Note: identical overloads without the
newkeyword work finegives no issue
)
Code of Conduct