define TaskLocation
This commit is contained in:
@@ -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: "",
|
||||||
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user