chore: define types

This commit is contained in:
kolaente 2022-08-02 13:50:02 +02:00
parent f3bb23cf14
commit f5c7b5be82
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -108,7 +108,7 @@ const ganttChartWidth = computed(() => {
const canWrite = computed(() => store.state.currentList.maxRight > Rights.READ)
const tasks = ref([])
const tasks = ref<Map<number, TaskModel>>([])
const ganttBars = ref([])
const defaultStartDate = format(new Date(), DATE_FORMAT)
@ -142,7 +142,7 @@ function mapGanttBars() {
}
async function loadTasks() {
tasks.value = new Map()
tasks.value = new Map<number, TaskModel>()
const params = {
sort_by: ['start_date', 'done', 'id'],