@@ -183,7 +183,7 @@ export class MomentDateAdapter extends DateAdapter<Moment> {
183183 return this . _createMoment ( ) . locale ( this . locale ) ;
184184 }
185185
186- parse ( value : any , parseFormat : string | string [ ] ) : Moment | null {
186+ parse ( value : unknown , parseFormat : string | string [ ] ) : Moment | null {
187187 if ( value && typeof value == 'string' ) {
188188 return this . _createMoment ( value , parseFormat , this . locale ) ;
189189 }
@@ -219,7 +219,7 @@ export class MomentDateAdapter extends DateAdapter<Moment> {
219219 * (https://www.ietf.org/rfc/rfc3339.txt) and valid Date objects into valid Moments and empty
220220 * string into null. Returns an invalid date for all other values.
221221 */
222- override deserialize ( value : any ) : Moment | null {
222+ override deserialize ( value : unknown ) : Moment | null {
223223 let date ;
224224 if ( value instanceof Date ) {
225225 date = this . _createMoment ( value ) . locale ( this . locale ) ;
@@ -239,7 +239,7 @@ export class MomentDateAdapter extends DateAdapter<Moment> {
239239 return super . deserialize ( value ) ;
240240 }
241241
242- isDateInstance ( obj : any ) : boolean {
242+ isDateInstance ( obj : unknown ) : obj is Moment {
243243 return moment . isMoment ( obj ) ;
244244 }
245245
@@ -281,7 +281,7 @@ export class MomentDateAdapter extends DateAdapter<Moment> {
281281 return date . seconds ( ) ;
282282 }
283283
284- override parseTime ( value : any , parseFormat : string | string [ ] ) : Moment | null {
284+ override parseTime ( value : unknown , parseFormat : string | string [ ] ) : Moment | null {
285285 return this . parse ( value , parseFormat ) ;
286286 }
287287
0 commit comments