Skip to content

Commit

Permalink
Update ember-flatpickr.ts
Browse files Browse the repository at this point in the history
In order to support it to be extended to override hooks like onClose, onOpen... a generic interface is needed to pass more args, what do you think?
  • Loading branch information
betocantu93 authored Dec 7, 2023
1 parent d972cf5 commit 070d6fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/components/ember-flatpickr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ interface EmberFlatpickrArgs extends FlatpickrOptions {
* @public
* @uses Flatpickr
*/
export default class EmberFlatpickr extends Component<EmberFlatpickrArgs> {
export default class EmberFlatpickr<T extends EmberFlatpickrArgs = EmberFlatpickrArgs> extends Component<T> {
flatpickrRef?: FlatpickrInstance;

/**
Expand Down

0 comments on commit 070d6fa

Please sign in to comment.