-
Notifications
You must be signed in to change notification settings - Fork 6.8k
docs: add types to public methods and getters/setters #9558
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
Conversation
src/lib/chips/chip-list.ts
Outdated
get role(): string|null { | ||
return this.empty ? null : 'listbox'; | ||
} | ||
get role(): string | null { return this.empty ? null : 'listbox'; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JSdocs for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"The ARIA role applied to the chip list"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rafaelss95 you may want to break this up into smaller PRs; by changing so many files, it will likely require repeated rebasing
src/lib/chips/chip-list.ts
Outdated
get role(): string|null { | ||
return this.empty ? null : 'listbox'; | ||
} | ||
get role(): string | null { return this.empty ? null : 'listbox'; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"The ARIA role applied to the chip list"
@jelbourn Since there are only changes in docs, wouldn't it be better if you could review and merge it ASAP to prevent the repeated rebase? Do you guys have a certain day to review this kind of PR? Btw, I've rebased. |
The problem is that anything that touches code (including the types) has to go through Google's presubmit process, which means it gets batched in with other PRs. Anything that gets merged earlier in the pipeline would have a potential conflict. |
Got it. How do you suggest to break it? What's the criteria? |
Up to you, maybe aim for something like 20 files per PR? |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Basically, this PR adds the missing types/docs for leftovers after #7711.
Fixes #8832.
PS: It'd be great to use something like typedef to ensure types for getters and setters are specified.