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(material/button-toggle): add missing type on public API #22224

Merged
merged 1 commit into from
Mar 15, 2021

Conversation

crisbeto
Copy link
Member

Adds an explicit type to MatButtonToggleGroup so that it can show up in the docs. This change is merge safe, because the type is the same as the inferred type that was in place already.

Fixes #22026.

Adds an explicit type to `MatButtonToggleGroup` so that it can show up in the docs.
This change is merge safe, because the type is the same as the inferred type that was in
place already.

Fixes angular#22026.
@crisbeto crisbeto added merge safe P4 A relatively minor issue that is not relevant to core functions target: patch This PR is targeted for the next patch release labels Mar 14, 2021
@crisbeto crisbeto requested a review from jelbourn as a code owner March 14, 2021 12:10
@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Mar 14, 2021
@@ -83,7 +83,8 @@ export const MAT_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR: any = {
multi: true
};

let _uniqueIdCounter = 0;
// Counter used to generate unique IDs.
let uniqueIdCounter = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

Just for clarification, could you fill me in on why we are making this public? Or is there another reason we're removing the underscore?

Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't make it public, I just removed the underscore since the constant isn't being exported so the name doesn't really matter.

Copy link
Contributor

@wagnermaciel wagnermaciel left a comment

Choose a reason for hiding this comment

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

LGTM

@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Mar 15, 2021
@mmalerba mmalerba merged commit 9f560f4 into angular:master Mar 15, 2021
mmalerba pushed a commit that referenced this pull request Mar 15, 2021
Adds an explicit type to `MatButtonToggleGroup` so that it can show up in the docs.
This change is merge safe, because the type is the same as the inferred type that was in
place already.

Fixes #22026.

(cherry picked from commit 9f560f4)
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P4 A relatively minor issue that is not relevant to core functions target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docs-bug(MatButtonToggle): absent type of selected field
3 participants