fp-search-algorithms
Version:
Functional Programming Style Search Algorithms and Unordered Containers
11 lines (10 loc) • 406 B
TypeScript
declare const typeOrder: readonly ["boolean", "number", "bigint", "string", "object"];
type ValidOrderTypes = (typeof typeOrder)[number];
export declare const LT = -1;
export declare const EQ = 0;
export declare const GT = 1;
export type Ord = -1 | 0 | 1;
/** @internal */
export declare const getType: (thing: any) => ValidOrderTypes;
export declare const omniCompare: (a: any, b: any) => Ord;
export {};