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";
2121import { NG_VALUE_ACCESSOR } from "@angular/forms" ;
2222import { carbonFlatpickrMonthSelectPlugin } from "./carbon-flatpickr-month-select" ;
2323import * as languages from "flatpickr/dist/l10n/index" ;
24+ import { Options } from "flatpickr/dist/types/options" ;
2425import { DatePickerInput } from "carbon-components-angular/datepicker-input" ;
2526import { I18n } from "carbon-components-angular/i18n" ;
2627
@@ -222,10 +223,10 @@ export class DatePicker implements
222223 @Input ( ) plugins = [ ] ;
223224
224225 @Input ( )
225- set flatpickrOptions ( options ) {
226+ set flatpickrOptions ( options : Partial < Options > ) {
226227 this . _flatpickrOptions = Object . assign ( { } , this . _flatpickrOptions , options ) ;
227228 }
228- get flatpickrOptions ( ) {
229+ get flatpickrOptions ( ) : Partial < Options > {
229230 const plugins = [ ...this . plugins , carbonFlatpickrMonthSelectPlugin ] ;
230231 if ( this . range ) {
231232 plugins . push ( rangePlugin ( { input : `#${ this . id } -rangeInput` , position : "left" } ) ) ;
@@ -251,7 +252,7 @@ export class DatePicker implements
251252
252253 protected _value = [ ] ;
253254
254- protected _flatpickrOptions = {
255+ protected _flatpickrOptions : Partial < Options > = {
255256 allowInput : true
256257 } ;
257258
You can’t perform that action at this time.
0 commit comments