Skip to content

Commit 54235df

Browse files
committed
refactor: inline UnknownTaskSource type definition
1 parent 4b28bdb commit 54235df

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/data/task.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export interface Task {
1515

1616
export type TaskStatus = { type: "CANCELLED" | "CUSTOM" | "DONE" | "OPEN"; symbol: string } | { type: "UNKNOWN" };
1717

18-
export type TaskSource = UnknownTaskSource | PageTaskSource;
18+
export type TaskSource = PageTaskSource | { type: "UNKNOWN" };
1919

2020
export interface TaskDates {
2121
cancelled: DateTime;
@@ -31,10 +31,6 @@ export interface TaskTimes {
3131
end: DateTime;
3232
}
3333

34-
export interface UnknownTaskSource {
35-
type: "UNKNOWN";
36-
}
37-
3834
export interface PageTaskSource {
3935
type: "PAGE";
4036
path: string;

0 commit comments

Comments
 (0)