Skip to content

Improving docs: More detailed / helpful JSDocs for components #33374

Closed Answered by spmonahan
bubulux asked this question in Ideas
Discussion options

You must be logged in to vote

Adding the docs as you describe would be redundant as all this information exists in the .types.ts file. Here's the Button types as an example: https://github.com/microsoft/fluentui/blob/master/packages/react-components/react-button/library/src/components/Button/Button.types.ts

The benefit of having this information in types is that Typescript can use it to provide Intellisense in editors like VSCode in addition to providing static type checking.

Adding the documentation you propose will increase the documentation burden on the library and increase the likelihood that the docs drift over time as there would be two sources of truth.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bubulux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants