@@ -12,7 +12,7 @@ export declare class _MatOptgroupBase extends _MatOptgroupMixinBase implements C
12
12
static ɵfac : i0 . ɵɵFactoryDeclaration < _MatOptgroupBase , [ { optional : true ; } ] > ;
13
13
}
14
14
15
- export declare class _MatOptionBase implements FocusableOption , AfterViewChecked , OnDestroy {
15
+ export declare class _MatOptionBase < T = any > implements FocusableOption , AfterViewChecked , OnDestroy {
16
16
readonly _stateChanges : Subject < void > ;
17
17
get active ( ) : boolean ;
18
18
get disableRipple ( ) : boolean | undefined ;
@@ -21,9 +21,9 @@ export declare class _MatOptionBase implements FocusableOption, AfterViewChecked
21
21
readonly group : _MatOptgroupBase ;
22
22
id : string ;
23
23
get multiple ( ) : boolean | undefined ;
24
- readonly onSelectionChange : EventEmitter < MatOptionSelectionChange > ;
24
+ readonly onSelectionChange : EventEmitter < MatOptionSelectionChange < T > > ;
25
25
get selected ( ) : boolean ;
26
- value : any ;
26
+ value : T ;
27
27
get viewValue ( ) : string ;
28
28
constructor ( _element : ElementRef < HTMLElement > , _changeDetectorRef : ChangeDetectorRef , _parent : MatOptionParentComponent , group : _MatOptgroupBase ) ;
29
29
_getAriaSelected ( ) : boolean | null ;
@@ -40,8 +40,8 @@ export declare class _MatOptionBase implements FocusableOption, AfterViewChecked
40
40
setActiveStyles ( ) : void ;
41
41
setInactiveStyles ( ) : void ;
42
42
static ngAcceptInputType_disabled : BooleanInput ;
43
- static ɵdir : i0 . ɵɵDirectiveDeclaration < _MatOptionBase , never , never , { "value" : "value" ; "id" : "id" ; "disabled" : "disabled" ; } , { "onSelectionChange" : "onSelectionChange" ; } , never > ;
44
- static ɵfac : i0 . ɵɵFactoryDeclaration < _MatOptionBase , never > ;
43
+ static ɵdir : i0 . ɵɵDirectiveDeclaration < _MatOptionBase < any > , never , never , { "value" : "value" ; "id" : "id" ; "disabled" : "disabled" ; } , { "onSelectionChange" : "onSelectionChange" ; } , never > ;
44
+ static ɵfac : i0 . ɵɵFactoryDeclaration < _MatOptionBase < any > , never > ;
45
45
}
46
46
47
47
export declare class AnimationCurves {
@@ -209,10 +209,10 @@ export declare class MatOptgroup extends _MatOptgroupBase {
209
209
static ɵfac : i0 . ɵɵFactoryDeclaration < MatOptgroup , never > ;
210
210
}
211
211
212
- export declare class MatOption extends _MatOptionBase {
212
+ export declare class MatOption < T = any > extends _MatOptionBase < T > {
213
213
constructor ( element : ElementRef < HTMLElement > , changeDetectorRef : ChangeDetectorRef , parent : MatOptionParentComponent , group : MatOptgroup ) ;
214
- static ɵcmp : i0 . ɵɵComponentDeclaration < MatOption , "mat-option" , [ "matOption" ] , { } , { } , never , [ "*" ] > ;
215
- static ɵfac : i0 . ɵɵFactoryDeclaration < MatOption , [ null , null , { optional : true ; } , { optional : true ; } ] > ;
214
+ static ɵcmp : i0 . ɵɵComponentDeclaration < MatOption < any > , "mat-option" , [ "matOption" ] , { } , { } , never , [ "*" ] > ;
215
+ static ɵfac : i0 . ɵɵFactoryDeclaration < MatOption < any > , [ null , null , { optional : true ; } , { optional : true ; } ] > ;
216
216
}
217
217
218
218
export declare class MatOptionModule {
@@ -227,11 +227,11 @@ export interface MatOptionParentComponent {
227
227
multiple ?: boolean ;
228
228
}
229
229
230
- export declare class MatOptionSelectionChange {
230
+ export declare class MatOptionSelectionChange < T = any > {
231
231
isUserInput : boolean ;
232
- source : _MatOptionBase ;
232
+ source : _MatOptionBase < T > ;
233
233
constructor (
234
- source : _MatOptionBase ,
234
+ source : _MatOptionBase < T > ,
235
235
isUserInput ?: boolean ) ;
236
236
}
237
237
0 commit comments