Skip to content

Commit c0ace39

Browse files
committed
fixup! refactor: make all event emitters readonly
1 parent 969633f commit c0ace39

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/material/core/datetime/date-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const MAT_DATE_LOCALE_PROVIDER = {provide: MAT_DATE_LOCALE, useExisting:
3232
export abstract class DateAdapter<D> {
3333
/** The locale to use for all dates. */
3434
protected locale: any;
35-
protected _localeChanges = new Subject<void>();
35+
protected readonly _localeChanges = new Subject<void>();
3636

3737
/** A stream that emits when the locale changes. */
3838
readonly localeChanges: Observable<void> = this._localeChanges;

tools/public_api_guard/cdk/stepper.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export declare class CdkStepLabel {
4848
}
4949

5050
export declare class CdkStepper implements AfterContentInit, AfterViewInit, OnDestroy {
51-
protected _destroyed: Subject<void>;
51+
protected readonly _destroyed: Subject<void>;
5252
_groupId: number;
5353
protected _orientation: StepperOrientation;
5454
_stepHeader: QueryList<FocusableOption>;

tools/public_api_guard/material/menu.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export declare class _MatMenuBase implements AfterContentInit, MatMenuPanel<MatM
1818
backdropClass: string;
1919
get classList(): string;
2020
set classList(classes: string);
21-
readonly close: EventEmitter<void | 'click' | 'keydown' | 'tab'>;
22-
readonly closed: EventEmitter<void | 'click' | 'keydown' | 'tab'>;
21+
readonly close: EventEmitter<void | "click" | "keydown" | "tab">;
22+
readonly closed: EventEmitter<void | "click" | "keydown" | "tab">;
2323
direction: Direction;
2424
get hasBackdrop(): boolean | undefined;
2525
set hasBackdrop(value: boolean | undefined);

0 commit comments

Comments
 (0)