Skip to content

Commit 2240f52

Browse files
authored
Optional typing of MatRadioChange
This event should be typed. Added type and fallback to any to make this optional and backwards compatible.
1 parent 7abd0eb commit 2240f52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/material/radio/radio.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ import {Subscription} from 'rxjs';
4949
import {_CdkPrivateStyleLoader} from '@angular/cdk/private';
5050

5151
/** Change event object emitted by radio button and radio group. */
52-
export class MatRadioChange {
52+
export class MatRadioChange<T = any> {
5353
constructor(
5454
/** The radio button that emits the change event. */
5555
public source: MatRadioButton,
5656
/** The value of the radio button. */
57-
public value: any,
57+
public value: T,
5858
) {}
5959
}
6060

0 commit comments

Comments
 (0)