Skip to content

Commit 217327e

Browse files
committed
fix lint and api
1 parent 8d5a7b5 commit 217327e

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

src/material-experimental/mdc-list/list.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ import {
1010
ChangeDetectionStrategy,
1111
Component,
1212
ContentChildren,
13-
Directive, ElementRef,
13+
Directive,
14+
ElementRef,
15+
NgZone,
1416
QueryList,
1517
ViewEncapsulation
1618
} from '@angular/core';
@@ -75,4 +77,8 @@ export class MatList extends MatListBase {}
7577
export class MatListItem extends MatListItemBase {
7678
@ContentChildren(MatLine, {read: ElementRef, descendants: true}) lines:
7779
QueryList<ElementRef<Element>>;
80+
81+
constructor(element: ElementRef, ngZone: NgZone) {
82+
super(element, ngZone);
83+
}
7884
}

src/material-experimental/mdc-list/selection-list.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
import {
1010
ChangeDetectionStrategy,
1111
Component,
12-
ContentChildren, ElementRef,
12+
ContentChildren,
13+
ElementRef,
1314
forwardRef,
15+
NgZone,
1416
QueryList,
1517
ViewEncapsulation
1618
} from '@angular/core';
@@ -60,4 +62,8 @@ export class MatSelectionList extends MatListBase {}
6062
export class MatListOption extends MatListItemBase {
6163
@ContentChildren(MatLine, {read: ElementRef, descendants: true}) lines:
6264
QueryList<ElementRef<Element>>;
65+
66+
constructor(element: ElementRef, ngZone: NgZone) {
67+
super(element, ngZone);
68+
}
6369
}

tools/public_api_guard/material/core.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ export declare type SanityChecks = boolean | GranularSanityChecks;
457457

458458
export declare const JAN = 0, FEB = 1, MAR = 2, APR = 3, MAY = 4, JUN = 5, JUL = 6, AUG = 7, SEP = 8, OCT = 9, NOV = 10, DEC = 11;
459459

460-
export declare function setLines(lines: QueryList<MatLine>, element: ElementRef<HTMLElement>): void;
460+
export declare function setLines(lines: QueryList<unknown>, element: ElementRef<HTMLElement>, prefix?: string): void;
461461

462462
export declare class ShowOnDirtyErrorStateMatcher implements ErrorStateMatcher {
463463
isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean;

0 commit comments

Comments
 (0)