-
Notifications
You must be signed in to change notification settings - Fork 221
Open
Labels
Description
Today we track item deprecation in each generator with a separate parameter that we pass to the generator. In an ideal world the token generators take a single parameter: the ApiItem (or subclass of) and that item has all the information we need to decide whether it's deprecated or not.
For example, for ApiEnum, we can do: const deprecated = item.tsdocComment?.deprecatedBlock !== undefined;
This issue tracks investigating whether that can work for us and if so, removing the deprecated argument to the generate function, replacing it with the logic above.
Also putting the discussion thread for context for more information we'll need in future #12986 (comment)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
🆕 New