mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 12:20:40 -07:00
14 lines
337 B
TypeScript
14 lines
337 B
TypeScript
import { isFunction } from '../util/underscore'
|
|
|
|
export interface IComparable {
|
|
equals: (rhs: any) => boolean;
|
|
gt: (rhs: any) => boolean;
|
|
geq: (rhs: any) => boolean;
|
|
lt: (rhs: any) => boolean;
|
|
leq: (rhs: any) => boolean;
|
|
}
|
|
|
|
export function isComparable (arg: any): arg is IComparable {
|
|
return arg && isFunction(arg.equals)
|
|
}
|