UNPKG

koconut

Version:

Provide interchainable array, set, map and etc supporting both normal and async callbacks as their action arguments.

19 lines (18 loc) 683 B
import { KoconutPrimitive } from '../../module'; /** * Classes which inherit from this protocol have a defined total ordering between their instances */ export interface KoconutComparable { /** * Compares this instance with the target object. * Result can be either simple number or {@link KoconutPrimitive} instance wrapping number value. * <pre> * Returns zero -- This object equals to other. * Returns negative number -- This object is less than other. * Returns positive number -- This object is grater than other. * </pre> * * @param other Target instance to compare. */ compareTo(other: any): number | KoconutPrimitive<number>; }