UNPKG

todo-txt-cli

Version:

A CLI for todo.txt files - http://todotxt.org/

15 lines (14 loc) 604 B
export function numSorter(p: string): ObjectSorter; export function boolSorter(p: string): ObjectSorter; export function stringSorter(p: string): ObjectSorter; export function sortSet(set: any): any[]; export namespace sorting { let due: string[]; let pri: string[]; let prj: string[]; let con: string[]; let task: string[]; } export function sorter(sortOrder: string[], sorters?: Record<string, ObjectSorter>): (a: any, b: any) => number; export type ObjectSorter = (a: Record<string, any>, b: Record<string, any>) => number; export type Sorter = (property: string) => ObjectSorter;