mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 14:00:39 -07:00
refactor: Tag class support in registerTag()
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import { isComparable } from '../drop/comparable'
|
||||
import { Context } from '../context/context'
|
||||
import { isFunction, toValue } from '../util/underscore'
|
||||
import { Context } from '../context'
|
||||
import { isFunction, toValue } from '../util'
|
||||
import { isTruthy } from '../render/boolean'
|
||||
|
||||
export interface Operators {
|
||||
[key: string]: (lhs: any, rhs: any, ctx: Context) => boolean;
|
||||
}
|
||||
export type OperatorHandler = (lhs: any, rhs: any, ctx: Context) => boolean;
|
||||
export type Operators = Record<string, OperatorHandler>
|
||||
|
||||
export const defaultOperators: Operators = {
|
||||
'==': (l: any, r: any) => {
|
||||
|
||||
Reference in New Issue
Block a user