You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trying to specify options for the KbdPlugin when creating the easepick, I got an lint error message from Typescript that it's not part of the IPickerConfig interface.
To Reproduce
Steps to reproduce the behavior:
import KbdPlugin with import {KbdPlugin} from '@easepick/kbd-plugin';
use easepick.create(..., plugins:[KbdPlugin], KbdPlugin: {...}
Expected behavior
To be able to specify the options unitIndex, dayIndex and html of the KbdPlugin.
Potential Fix
Comparing the code of LockPlugin to KbdPlugin, I found a difference in easepick/packages/kbd-plugin/interface.ts where in the LockPlugin one it says declare module '@easepick/core/dist/types' { interface IPickerConfig { LockPlugin?: ILockConfig; } }
in the KbdPlugin interface.ts it says declare module '@easepick/core/dist/types' { interface IKbdPlugin { KbdPlugin?: IKbdPlugin; } }
If it was to be changed to interface IPickerConfig as well, it could be used within easepick.create().
Additional context
I am currently building a web component in Lit and use easepick as the datepicker inline.
The text was updated successfully, but these errors were encountered:
Describe the bug
When trying to specify options for the KbdPlugin when creating the easepick, I got an lint error message from Typescript that it's not part of the IPickerConfig interface.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
To be able to specify the options unitIndex, dayIndex and html of the KbdPlugin.
Potential Fix
Comparing the code of LockPlugin to KbdPlugin, I found a difference in easepick/packages/kbd-plugin/interface.ts where in the LockPlugin one it says
declare module '@easepick/core/dist/types' { interface IPickerConfig { LockPlugin?: ILockConfig; } }
in the KbdPlugin interface.ts it says
declare module '@easepick/core/dist/types' { interface IKbdPlugin { KbdPlugin?: IKbdPlugin; } }
If it was to be changed to
interface IPickerConfig
as well, it could be used within easepick.create().Additional context
I am currently building a web component in Lit and use easepick as the datepicker inline.
The text was updated successfully, but these errors were encountered: