UNPKG

@lui297/vue-ganttastic

Version:

A simple and customizable Gantt chart component for Vue.js

10 lines (9 loc) 558 B
import type { GGanttChartConfig } from "../components/GGanttChart.vue"; import type { GanttBarObject } from "../types.ts"; import { DateTime } from "luxon"; export default function useDateTimeHelper(config?: GGanttChartConfig): { chartStartDateTime: import("vue").ComputedRef<DateTime<boolean>>; chartEndDateTime: import("vue").ComputedRef<DateTime<boolean>>; toDateTime: (input: string | Date | GanttBarObject | DateTime, startOrEnd?: "start" | "end") => DateTime<boolean>; format: (input: string | Date | DateTime) => DateTime | string; };