Skip to content

fix: handle ambiguous array-like types - #172

Merged
43081j merged 1 commit into
mainfrom
jg/ambiguous-arrays
Oct 17, 2026
Merged

43081j merged 1 commit into
mainfrom
jg/ambiguous-arrays

Conversation

@43081j

@43081j 43081j commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Fixes #170.

This basically distinguishes ambiguous array types (T | T[], i.e. it
could be an array or not), and non-array types.

With this knowledge, the prefer-spread-syntax rule can now exclude
ambiguous array types from Array.concat detection.

Fixes #170.

This basically distinguishes ambiguous array types (`T | T[]`, i.e. it
could be an array or not), and non-array types.

With this knowledge, the `prefer-spread-syntax` rule can now exclude
ambiguous array types from `Array.concat` detection.
@43081j
43081j merged commit ed258f0 into main Oct 17, 2026
3 checks passed
@43081j
43081j deleted the jg/ambiguous-arrays branch October 17, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

prefer-spread-syntax: wrong fixes with type information for T | T[] in concat() and for ArrayLike

1 participant