1.0.2 • Published 2 years ago

todoist-api-colors v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.0

2 years ago