File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
material-moment-adapter/adapter
tools/public_api_guard/material Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ export class MomentDateAdapter extends DateAdapter<Moment> {
235
235
return super . deserialize ( value ) ;
236
236
}
237
237
238
- isDateInstance ( obj : any ) : obj is _moment . Moment {
238
+ isDateInstance ( obj : any ) : boolean {
239
239
return moment . isMoment ( obj ) ;
240
240
}
241
241
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ export abstract class DateAdapter<D> {
188
188
* @param obj The object to check
189
189
* @returns Whether the object is a date instance.
190
190
*/
191
- abstract isDateInstance ( obj : any ) : obj is D ;
191
+ abstract isDateInstance ( obj : any ) : boolean ;
192
192
193
193
/**
194
194
* Checks whether the given date is valid.
Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ export class NativeDateAdapter extends DateAdapter<Date> {
267
267
return super . deserialize ( value ) ;
268
268
}
269
269
270
- isDateInstance ( obj : any ) : obj is Date {
270
+ isDateInstance ( obj : any ) {
271
271
return obj instanceof Date ;
272
272
}
273
273
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ export declare abstract class DateAdapter<D> {
70
70
abstract getYear ( date : D ) : number ;
71
71
abstract getYearName ( date : D ) : string ;
72
72
abstract invalid ( ) : D ;
73
- abstract isDateInstance ( obj : any ) : obj is D ;
73
+ abstract isDateInstance ( obj : any ) : boolean ;
74
74
abstract isValid ( date : D ) : boolean ;
75
75
abstract parse ( value : any , parseFormat : any ) : D | null ;
76
76
sameDate ( first : D | null , second : D | null ) : boolean ;
@@ -377,7 +377,7 @@ export declare class NativeDateAdapter extends DateAdapter<Date> {
377
377
getYear ( date : Date ) : number ;
378
378
getYearName ( date : Date ) : string ;
379
379
invalid ( ) : Date ;
380
- isDateInstance ( obj : any ) : obj is Date ;
380
+ isDateInstance ( obj : any ) : boolean ;
381
381
isValid ( date : Date ) : boolean ;
382
382
parse ( value : any ) : Date | null ;
383
383
toIso8601 ( date : Date ) : string ;
You can’t perform that action at this time.
0 commit comments