@@ -173,7 +173,7 @@ export class LuxonDateAdapter extends DateAdapter<LuxonDateTime> {
173173 return this . _useUTC ? LuxonDateTime . utc ( options ) : LuxonDateTime . local ( options ) ;
174174 }
175175
176- parse ( value : any , parseFormat : string | string [ ] ) : LuxonDateTime | null {
176+ parse ( value : unknown , parseFormat : string | string [ ] ) : LuxonDateTime | null {
177177 const options : LuxonDateTimeOptions = this . _getOptions ( ) ;
178178
179179 if ( typeof value == 'string' && value . length > 0 ) {
@@ -241,7 +241,7 @@ export class LuxonDateAdapter extends DateAdapter<LuxonDateTime> {
241241 * (https://www.ietf.org/rfc/rfc3339.txt) and valid Date objects into valid DateTime and empty
242242 * string into null. Returns an invalid date for all other values.
243243 */
244- override deserialize ( value : any ) : LuxonDateTime | null {
244+ override deserialize ( value : unknown ) : LuxonDateTime | null {
245245 const options = this . _getOptions ( ) ;
246246 let date : LuxonDateTime | undefined ;
247247 if ( value instanceof Date ) {
@@ -259,7 +259,7 @@ export class LuxonDateAdapter extends DateAdapter<LuxonDateTime> {
259259 return super . deserialize ( value ) ;
260260 }
261261
262- isDateInstance ( obj : any ) : boolean {
262+ isDateInstance ( obj : unknown ) : obj is LuxonDateTime {
263263 return obj instanceof LuxonDateTime ;
264264 }
265265
@@ -311,7 +311,7 @@ export class LuxonDateAdapter extends DateAdapter<LuxonDateTime> {
311311 return date . second ;
312312 }
313313
314- override parseTime ( value : any , parseFormat : string | string [ ] ) : LuxonDateTime | null {
314+ override parseTime ( value : unknown , parseFormat : string | string [ ] ) : LuxonDateTime | null {
315315 const result = this . parse ( value , parseFormat ) ;
316316
317317 if ( ( ! result || ! this . isValid ( result ) ) && typeof value === 'string' ) {
0 commit comments