Skip to content

startDate and endDate should be type Date #53

Description

@kutyel

Currently I have to do this to work with this component:

  const onDateChange = ({ startDate }: { startDate: number }) =>
    (selectedDate = new Date(startDate))

whereas a more proper solution would be to bind to something like this which cally is doing:

onfocusday={(e: CustomEvent<Date>) => (selectedDate = e.detail)}

Is this too tricky or just a preference?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions