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 {
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: "",
};