| 1 | import { isFunction } from '../util' |
| 2 | |
| 3 | export interface Comparable { |
| 4 | equals: (rhs: any) => boolean; |
| 5 | gt: (rhs: any) => boolean; |
| 6 | geq: (rhs: any) => boolean; |
| 7 | lt: (rhs: any) => boolean; |
| 8 | leq: (rhs: any) => boolean; |
| 9 | } |
| 10 | |
| 11 | export function isComparable (arg: any): arg is Comparable { |
| 12 | return ( |