Files
rss-nostr-lambda/node_modules/tstl/functional/comparators.d.ts
T

49 lines
1.5 KiB
TypeScript

/**
* Test whether two arguments are equal.
*
* @param x The first argument to compare.
* @param y The second argument to compare.
* @return Whether two arguments are equal or not.
*/
export declare function equal_to<T>(x: T, y: T): boolean;
/**
* Test whether two arguments are not equal.
*
* @param x The first argument to compare.
* @param y The second argument to compare.
* @return Returns `true`, if two arguments are not equal, otherwise `false`.
*/
export declare function not_equal_to<T>(x: T, y: T): boolean;
/**
* Test whether *x* is less than *y*.
*
* @param x The first argument to compare.
* @param y The second argument to compare.
* @return Whether *x* is less than *y*.
*/
export declare function less<T>(x: T, y: T): boolean;
/**
* Test whether *x* is less than or equal to *y*.
*
* @param x The first argument to compare.
* @param y The second argument to compare.
* @return Whether *x* is less than or equal to *y*.
*/
export declare function less_equal<T>(x: T, y: T): boolean;
/**
* Test whether *x* is greater than *y*.
*
* @param x The first argument to compare.
* @param y The second argument to compare.
* @return Whether *x* is greater than *y*.
*/
export declare function greater<T>(x: T, y: T): boolean;
/**
* Test whether *x* is greater than or equal to *y*.
*
* @param x The first argument to compare.
* @param y The second argument to compare.
* @return Whether *x* is greater than or equal to *y*.
*/
export declare function greater_equal<T>(x: T, y: T): boolean;