View: {
    addOneUnit: ((date: Date) => Date);
    connect: Connect;
}

a view implements a given [Intl.DateTimeFormatPartTypes type](MDN LINK)

Type declaration

  • addOneUnit: ((date: Date) => Date)

    add one unit to a given date

    I.e. for a days view this would return the start of the next day.

      • (date): Date
      • Parameters

        • date: Date

        Returns Date

  • connect: Connect

    implement this to integrate your view with the datepicker instance