mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-19 14:30:38 -07:00
docs: website for LiquidJS
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { isFunction } from '../util/underscore'
|
||||
|
||||
export interface Comparable {
|
||||
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 Comparable {
|
||||
return arg && isFunction(arg.equals)
|
||||
}
|
||||
Reference in New Issue
Block a user