Bug Report Checklist
Overview
There are three functions exported or proposed for ts-api-utils around returning the .types property of a type:
The terminology we use in typescript-eslint for "type parts" is constituent (typescript-eslint/typescript-eslint#5841). My proposal is:
- Make the same 2-3 functions available under names
get(Intersection|Union)?Constituents, marking the old functions as @deprecated
- Update them in any libraries we maintain - especially if we're forced to by
eslint-plugin-deprecation
- Remove the old names in the next major version
Additional Info
No response
Bug Report Checklist
mainbranch of the repository.Overview
There are three functions exported or proposed for
ts-api-utilsaround returning the.typesproperty of a type:intersectionTypePartsunionTypePartsThe terminology we use in typescript-eslint for "type parts" is constituent (typescript-eslint/typescript-eslint#5841). My proposal is:
get(Intersection|Union)?Constituents, marking the old functions as@deprecatedeslint-plugin-deprecationAdditional Info
No response