@@ -84,13 +84,19 @@ export class NgxdatepickerComponent implements OnInit, ControlValueAccessor, OnC
8484 @Output ( ) dateClicked = new EventEmitter < string > ( ) ;
8585 @Input ( ) invalidDates : string [ ] = [ ] ;
8686 @Input ( ) validDates : string [ ] = [ ] ;
87+ // @ts -ignore
8788 @Input ( ) disablePrevDates ;
89+
90+ // tslint:disable-next-line:no-any
8891 weeks : any [ ] = Array . from ( Array ( 7 ) . keys ( ) , ( n ) => {
8992 return { weekday : n , days : [ ] } ;
9093 } ) ;
9194 current : Moment ;
95+ // tslint:disable-next-line:no-any
9296 previous : any ;
97+ // tslint:disable-next-line:no-any
9398 next : any ;
99+ // @ts -ignore
94100 selected : IDay ;
95101 val = '' ;
96102
@@ -104,9 +110,11 @@ export class NgxdatepickerComponent implements OnInit, ControlValueAccessor, OnC
104110 }
105111 }
106112
107- onChange : any = ( a , b ) => {
113+ // tslint:disable-next-line:no-any
114+ onChange : any = ( ) => {
108115 } ;
109116
117+ // tslint:disable-next-line:no-any
110118 onTouch : any = ( ) => {
111119 } ;
112120
@@ -128,7 +136,7 @@ export class NgxdatepickerComponent implements OnInit, ControlValueAccessor, OnC
128136 this . selected = {
129137 day : day . format ( ) ,
130138 weekday : parseInt ( day . format ( 'd' ) , 10 ) ,
131- disabled : null ,
139+ disabled : false ,
132140 selected : true ,
133141 } ;
134142
@@ -140,16 +148,19 @@ export class NgxdatepickerComponent implements OnInit, ControlValueAccessor, OnC
140148 }
141149
142150 // this method sets the value programmatically
151+ // tslint:disable-next-line:no-any
143152 writeValue ( value : any ) {
144153 this . value = value ;
145154 }
146155
147156 // upon UI element value changes, this method gets triggered
157+ // tslint:disable-next-line:no-any
148158 registerOnChange ( fn : any ) {
149159 this . onChange = fn ;
150160 }
151161
152162 // upon touching the element, this method gets triggered
163+ // tslint:disable-next-line:no-any
153164 registerOnTouched ( fn : any ) {
154165 this . onTouch = fn ;
155166 }
@@ -235,6 +246,7 @@ export class NgxdatepickerComponent implements OnInit, ControlValueAccessor, OnC
235246 this . matchDays ( days ) ;
236247 }
237248
249+ // tslint:disable-next-line:no-any
238250 matchDays ( days : any [ ] ) {
239251 this . weeks . map ( ( week ) => {
240252 week . days = days . filter ( ( day ) => week . weekday === day . weekday ) ;
@@ -275,7 +287,8 @@ export class NgxdatepickerComponent implements OnInit, ControlValueAccessor, OnC
275287 addClass ( ) {
276288 // Set selected class
277289 this . weeks = this . weeks . map ( ( week ) => {
278- week . days = week . days . map ( ( dayItem ) => {
290+ // tslint:disable-next-line:no-any
291+ week . days = week . days . map ( ( dayItem : any ) => {
279292 return {
280293 ...dayItem ,
281294 selected : dayItem . day === this . selected ?. day ,
0 commit comments