@@ -266,16 +266,16 @@ export class _MatOptgroupBase extends _MatOptgroupMixinBase implements CanDisabl
266
266
}
267
267
268
268
// @public
269
- export class MatOption extends _MatOptionBase {
269
+ export class MatOption < T = any > extends _MatOptionBase < T > {
270
270
constructor (element : ElementRef <HTMLElement >, changeDetectorRef : ChangeDetectorRef , parent : MatOptionParentComponent , group : MatOptgroup );
271
271
// (undocumented)
272
- static ɵcmp: i0 .ɵɵComponentDeclaration <MatOption , " mat-option" , [" matOption" ], {}, {}, never , [" *" ]>;
272
+ static ɵcmp: i0 .ɵɵComponentDeclaration <MatOption < any > , " mat-option" , [" matOption" ], {}, {}, never , [" *" ]>;
273
273
// (undocumented)
274
- static ɵfac: i0 .ɵɵFactoryDeclaration <MatOption , [null , null , { optional: true ; }, { optional: true ; }]>;
274
+ static ɵfac: i0 .ɵɵFactoryDeclaration <MatOption < any > , [null , null , { optional: true ; }, { optional: true ; }]>;
275
275
}
276
276
277
277
// @public (undocumented)
278
- export class _MatOptionBase implements FocusableOption , AfterViewChecked , OnDestroy {
278
+ export class _MatOptionBase < T = any > implements FocusableOption , AfterViewChecked , OnDestroy {
279
279
constructor (_element : ElementRef <HTMLElement >, _changeDetectorRef : ChangeDetectorRef , _parent : MatOptionParentComponent , group : _MatOptgroupBase );
280
280
get active(): boolean ;
281
281
deselect(): void ;
@@ -296,19 +296,19 @@ export class _MatOptionBase implements FocusableOption, AfterViewChecked, OnDest
296
296
ngAfterViewChecked(): void ;
297
297
// (undocumented)
298
298
ngOnDestroy(): void ;
299
- readonly onSelectionChange: EventEmitter <MatOptionSelectionChange >;
299
+ readonly onSelectionChange: EventEmitter <MatOptionSelectionChange < T > >;
300
300
select(): void ;
301
301
get selected(): boolean ;
302
302
_selectViaInteraction(): void ;
303
303
setActiveStyles(): void ;
304
304
setInactiveStyles(): void ;
305
305
readonly _stateChanges: Subject <void >;
306
- value: any ;
306
+ value: T ;
307
307
get viewValue(): string ;
308
308
// (undocumented)
309
- static ɵdir: i0 .ɵɵDirectiveDeclaration <_MatOptionBase , never , never , { " value" : " value" ; " id" : " id" ; " disabled" : " disabled" ; }, { " onSelectionChange" : " onSelectionChange" ; }, never >;
309
+ static ɵdir: i0 .ɵɵDirectiveDeclaration <_MatOptionBase < any > , never , never , { " value" : " value" ; " id" : " id" ; " disabled" : " disabled" ; }, { " onSelectionChange" : " onSelectionChange" ; }, never >;
310
310
// (undocumented)
311
- static ɵfac: i0 .ɵɵFactoryDeclaration <_MatOptionBase , never >;
311
+ static ɵfac: i0 .ɵɵFactoryDeclaration <_MatOptionBase < any > , never >;
312
312
}
313
313
314
314
// @public (undocumented)
@@ -332,12 +332,12 @@ export interface MatOptionParentComponent {
332
332
}
333
333
334
334
// @public
335
- export class MatOptionSelectionChange {
335
+ export class MatOptionSelectionChange < T = any > {
336
336
constructor (
337
- source : _MatOptionBase ,
337
+ source : _MatOptionBase < T > ,
338
338
isUserInput ? : boolean );
339
339
isUserInput: boolean ;
340
- source: _MatOptionBase ;
340
+ source: _MatOptionBase < T > ;
341
341
}
342
342
343
343
// @public
0 commit comments