define TaskLocation

This commit is contained in:
marlon-erler
2024-07-22 12:22:52 +02:00
parent c2e78f9786
commit b111cd47dd
+14
View File
@@ -2,6 +2,7 @@
import { import {
DATA_VERSION, DATA_VERSION,
ValidObject,
checkMatchesObjectStructure, checkMatchesObjectStructure,
} from "../Utility/typeSafety"; } from "../Utility/typeSafety";
import FileModel, { File, FileContent } from "./fileModel"; import FileModel, { File, FileContent } from "./fileModel";
@@ -78,6 +79,13 @@ export interface TaskFileContent extends FileContent<"task"> {
time?: string; time?: string;
} }
export interface TaskLocation extends ValidObject {
board: string;
category?: string;
status?: string;
}
// reference
export const TaskFileContentReference: TaskFileContent = { export const TaskFileContentReference: TaskFileContent = {
dataVersion: DATA_VERSION, dataVersion: DATA_VERSION,
@@ -88,3 +96,9 @@ export const TaskFileContentReference: TaskFileContent = {
name: "", name: "",
board: "", board: "",
}; };
export const TaskLocationReference: TaskLocation = {
dataVersion: DATA_VERSION,
board: "",
};