Initial commit
This commit is contained in:
32
types.ts
Normal file
32
types.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
export interface Category {
|
||||
id: string;
|
||||
name: string;
|
||||
color: string;
|
||||
emoji?: string;
|
||||
}
|
||||
|
||||
export interface Task {
|
||||
id: string;
|
||||
title: string;
|
||||
categoryId: string;
|
||||
startTime: number | null;
|
||||
totalElapsed: number;
|
||||
completed: boolean;
|
||||
completedAt?: number;
|
||||
}
|
||||
|
||||
export interface TaskWeaverSettings {
|
||||
categories: Category[];
|
||||
tasks: Task[];
|
||||
enableDailyNoteLogging: boolean;
|
||||
dailyNoteFormat: string;
|
||||
dailyNotePath: string;
|
||||
}
|
||||
|
||||
export const DEFAULT_SETTINGS: TaskWeaverSettings = {
|
||||
categories: [],
|
||||
tasks: [],
|
||||
enableDailyNoteLogging: false,
|
||||
dailyNoteFormat: "- [x] {{title}} ({{duration}}) {{emoji}}",
|
||||
dailyNotePath: ""
|
||||
};
|
||||
Reference in New Issue
Block a user