From b111cd47dd889ace4361117a229843febeea9281 Mon Sep 17 00:00:00 2001 From: marlon-erler Date: Mon, 22 Jul 2024 12:22:52 +0200 Subject: [PATCH] define TaskLocation --- src/Model/Files/taskModel.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Model/Files/taskModel.ts b/src/Model/Files/taskModel.ts index 426ee79a..ad7263c1 100644 --- a/src/Model/Files/taskModel.ts +++ b/src/Model/Files/taskModel.ts @@ -2,6 +2,7 @@ import { DATA_VERSION, + ValidObject, checkMatchesObjectStructure, } from "../Utility/typeSafety"; import FileModel, { File, FileContent } from "./fileModel"; @@ -78,6 +79,13 @@ export interface TaskFileContent extends FileContent<"task"> { time?: string; } +export interface TaskLocation extends ValidObject { + board: string; + category?: string; + status?: string; +} + +// reference export const TaskFileContentReference: TaskFileContent = { dataVersion: DATA_VERSION, @@ -88,3 +96,9 @@ export const TaskFileContentReference: TaskFileContent = { name: "", board: "", }; + +export const TaskLocationReference: TaskLocation = { + dataVersion: DATA_VERSION, + + board: "", +};