🚀 Feature: typeParts API, combining intersectionTypeParts and unionTypeParts? #258
Closed
3 tasks done
Labels
status: in discussion
Not yet ready for implementation or a pull request
type: feature
New enhancement or request 🚀
Bug Report Checklist
main
branch of the repository.Overview
https://github.com/typescript-eslint/typescript-eslint/pull/7466/files#diff-3cc43b506517aba406ae3a31d7998b116c4b09db76b632c6cb3c2e54fc71d66cR33 shows code that wants the type parts of a type that can be either an intersection or union. Maybe it'd be nice to expose a simplified function to do this? Maybe with a
recursive?: boolean
parameter/option?My instinct is no, since folks can do this pretty on their own in a straightforward manner. But just thinking out loud.
Additional Info
No response
The text was updated successfully, but these errors were encountered: