Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Remove dead generatePropTypeDescription method #25188

Merged
merged 4 commits into from
Mar 6, 2021
Merged

[docs] Remove dead generatePropTypeDescription method #25188

merged 4 commits into from
Mar 6, 2021

Conversation

fayzzzm
Copy link
Contributor

@fayzzzm fayzzzm commented Mar 4, 2021

By observing files, we have found that generatePropTypeDescription and several other functions have been duplicated at path path1: docs/scripts/buildApi.ts but at the path of path2: docs/src/modules/utils/generatePropTypeDescription.ts, we have a separate file with all of these functions. So I've decided to delete from path1 all duplicate functions and import them from path2.

More: discussion link

@mui-pr-bot
Copy link

mui-pr-bot commented Mar 4, 2021

No bundle size changes

Generated by 🚫 dangerJS against 315c99c

@@ -47,20 +47,24 @@ function getChained(type: PropTypeDescriptor) {
return false;
}

function escapeCell(value: string): string {
export function escapeCell(value: string): string {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added an export here because the "buildApi" file duplicated these functions.
I deleted the duplicates, exported them from here, and used them there.

@oliviertassinari oliviertassinari changed the title [docs] 'generatePropTypeDescription' duplicate remove. [docs] Remove dead generatePropTypeDescription method Mar 4, 2021
@oliviertassinari oliviertassinari added core Infrastructure work going on behind the scenes docs Improvements or additions to the documentation labels Mar 4, 2021
@oliviertassinari oliviertassinari requested a review from eps1lon March 4, 2021 17:58
@oliviertassinari oliviertassinari merged commit a9ce197 into mui:next Mar 6, 2021
@oliviertassinari
Copy link
Member

@fayzzzm Great, first step done :)

@fayzzzm fayzzzm deleted the fayzzzm.removeDuplicatePropTypeDescriptionFunction branch March 6, 2021 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants