From 98b41a22c6824b069f4b1d7e7609e128ba13d240 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Sun, 30 Jan 2022 14:05:52 +0100 Subject: [PATCH] fix: improve ListModel typing --- src/models/list.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/models/list.js b/src/models/list.js index b5a08e81..3f6b0873 100644 --- a/src/models/list.js +++ b/src/models/list.js @@ -5,6 +5,22 @@ import {getSavedFilterIdFromListId} from '@/helpers/savedFilter' import SubscriptionModel from '@/models/subscription' export default class ListModel extends AbstractModel { + id = 0 + title = '' + description = '' + owner = UserModel + tasks = [] + namespaceId = 0 + isArchived = false + hexColor = '' + identifier = '' + backgroundInformation = null + isFavorite = false + subscription = null + position = 0 + + created = null + updated = null constructor(data) { super(data)