todoist-api-colors
v1.0.2
Published
Small utility to resolve color codes from Todoist API (projects, labels).
Downloads
4
Readme
Todoist API colors
Small utility to resolve color codes from Todoist API (projects, labels).
Typescript-first, colors names and IDs area strongly typed based on Todoist docs
Model
type TodoistColor = {
id: number;
name: string;
hexColor: string;
};
type TodoistColorsList = TodoistColor[];
Methods
function getTodoistColorByName(name: string): TodoistColor | null;
function getTodoistColorById(id: number): TodoistColor | null;