Goal
type Goal = {
[key: string]: unknown;
childOrder: number;
completedAt: Date | null;
createdAt: Date;
creatorUid: string;
deadline: string | null;
description: string | null;
id: string;
isCompleted: boolean;
isDeleted: boolean;
name: string;
ownerId: string;
ownerType: "USER" | "WORKSPACE";
parentGoalId: string | null;
progress?: {
[key: string]: unknown;
completedTaskCount: number;
percentage: number;
totalTaskCount: number;
};
responsibleUid: string | null;
updatedAt: Date;
};
Represents a goal in Todoist. Goals support dual ownership: personal (ownerType=USER) and workspace (ownerType=WORKSPACE).
Type Declaration
Index Signature
[key: string]: unknown