Skip to content

Conversation

@zelliott
Copy link
Contributor

@zelliott zelliott commented May 5, 2022

Summary

Instead of ignoring setters entirely, this PR changes API Extractor to generate documentation for a setter if and only if there is no associated getter. If there is an associated getter, the setter is ignored. Note that API Extractor still has the ae-missing-getter warning for teams that want to discourage setters without getters.

In the future, perhaps an isWriteonly bit can be added to these nodes, similar to #3265.

Details

N/A

How it was tested

Added a relevant scenario to the api-documenter-test build test, ran rush rebuild, manually verified that the generated artifacts were correct.

@zelliott zelliott changed the title Generate documentation for setters without getters [api-extractor] Generate documentation for setters without getters May 5, 2022
@octogonz octogonz merged commit 5f56cf6 into microsoft:main May 14, 2022
@octogonz
Copy link
Collaborator

Released with API Extractor 7.24.0

Qjuh pushed a commit to discordjs/rushstack that referenced this pull request Nov 7, 2023
[api-extractor] Generate documentation for setters without getters
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.

2 participants