Skip to content

Commit 0d8bdf9

Browse files
committed
fix(material/timepicker): Replace any with unknown in timepicker-input
1 parent 264a000 commit 0d8bdf9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/material/timepicker/timepicker-input.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class MatTimepickerInput<D> implements ControlValueAccessor, Validator, O
8686
private _dateFormats = inject(MAT_DATE_FORMATS, {optional: true})!;
8787
private _formField = inject(MAT_FORM_FIELD, {optional: true});
8888

89-
private _onChange: ((value: any) => void) | undefined;
89+
private _onChange: ((value: unknown) => void) | undefined;
9090
private _onTouched: (() => void) | undefined;
9191
private _validatorOnChange: (() => void) | undefined;
9292
private _cleanupClick: () => void;
@@ -183,7 +183,7 @@ export class MatTimepickerInput<D> implements ControlValueAccessor, Validator, O
183183
* Implemented as a part of `ControlValueAccessor`.
184184
* @docs-private
185185
*/
186-
writeValue(value: any): void {
186+
writeValue(value: unknown): void {
187187
// Note that we need to deserialize here, rather than depend on the value change effect,
188188
// because `getValidDateOrNull` will clobber the value if it's parseable, but not created by
189189
// the current adapter (see #30140).
@@ -195,7 +195,7 @@ export class MatTimepickerInput<D> implements ControlValueAccessor, Validator, O
195195
* Implemented as a part of `ControlValueAccessor`.
196196
* @docs-private
197197
*/
198-
registerOnChange(fn: (value: any) => void): void {
198+
registerOnChange(fn: (value: unknown) => void): void {
199199
this._onChange = fn;
200200
}
201201

0 commit comments

Comments
 (0)