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
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
However this is not supported by TypeScript as TypeScript doesn't support this unification.
It gives an error stating that a rest paramter should be of type Array.
Expected behavior
Tslint knows this is an impossible unification and so does not mark this in conflict with the unified-signatures rule.
Note: TypeScript will most likely never allow this unification as this exact issue (TypeScript part) is marked as By Design a.k.a. this is not possible on purpose. (and with a reason)
Bug Report
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
It claims this conflicts with the
unified-signatures
rule because according to tslint, it can be unified to:However this is not supported by TypeScript as TypeScript doesn't support this unification.
It gives an error stating that a rest paramter should be of type Array.
Expected behavior
Tslint knows this is an impossible unification and so does not mark this in conflict with the
unified-signatures
rule.Note: TypeScript will most likely never allow this unification as this exact issue (TypeScript part) is marked as
By Design
a.k.a. this is not possible on purpose. (and with a reason)Typescript issue: microsoft/TypeScript#5077
The text was updated successfully, but these errors were encountered: