1.0.2 • Published 3 years ago

todoist-api-colors v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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;
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.0

3 years ago