File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import flatpickr from "flatpickr";
21
21
import { NG_VALUE_ACCESSOR } from "@angular/forms" ;
22
22
import { carbonFlatpickrMonthSelectPlugin } from "./carbon-flatpickr-month-select" ;
23
23
import * as languages from "flatpickr/dist/l10n/index" ;
24
+ import { Options } from "flatpickr/dist/types/options" ;
24
25
import { DatePickerInput } from "carbon-components-angular/datepicker-input" ;
25
26
import { I18n } from "carbon-components-angular/i18n" ;
26
27
@@ -222,10 +223,10 @@ export class DatePicker implements
222
223
@Input ( ) plugins = [ ] ;
223
224
224
225
@Input ( )
225
- set flatpickrOptions ( options ) {
226
+ set flatpickrOptions ( options : Partial < Options > ) {
226
227
this . _flatpickrOptions = Object . assign ( { } , this . _flatpickrOptions , options ) ;
227
228
}
228
- get flatpickrOptions ( ) {
229
+ get flatpickrOptions ( ) : Partial < Options > {
229
230
const plugins = [ ...this . plugins , carbonFlatpickrMonthSelectPlugin ] ;
230
231
if ( this . range ) {
231
232
plugins . push ( rangePlugin ( { input : `#${ this . id } -rangeInput` , position : "left" } ) ) ;
@@ -251,7 +252,7 @@ export class DatePicker implements
251
252
252
253
protected _value = [ ] ;
253
254
254
- protected _flatpickrOptions = {
255
+ protected _flatpickrOptions : Partial < Options > = {
255
256
allowInput : true
256
257
} ;
257
258
You can’t perform that action at this time.
0 commit comments