This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
'expected variable-declaration to have a typedef' lint error on for...of loops #743
Labels
Milestone
When using
"typedef": [true, "variable-declaration"]
,tslint
complains about variables within for...of loop declarations; however typedefs are not allowed in this context.The following will result in a
expected variable-declaration: 'thing' to have a typedef
error fromtslint
:but specifying a typedef on
thing
results in the followingtsc
compilation error:error TS2483: The left-hand side of a 'for...of' statement cannot use a type annotation
The
typedef
rule should ignore variables declared within for...of loop declarationsThe text was updated successfully, but these errors were encountered: