@visulima/email
Version:
A comprehensive email library with multi-provider support, crypto utilities, and template engines
17 lines (16 loc) • 703 B
TypeScript
import type { Priority } from "../types.d.ts";
/**
* Compares two priority levels and returns a number indicating their relative order.
* High priority is considered greater than normal, which is greater than low.
* @example Sorting priorities
* ```ts
* const priorities: Priority[] = ["normal", "low", "high"];
* priorities.sort(comparePriority);
* // ["high", "normal", "low"]
* ```
* @param a The first priority to compare
* @param b The second priority to compare
* @returns A negative number if a is less than b, a positive number if a is greater than b, and zero if they are equal
*/
declare const comparePriority: (a: Priority, b: Priority) => number;
export default comparePriority;