feat: export Operators from operator.ts

This commit is contained in:
Jason Etcovitch
2021-02-04 09:11:28 +08:00
committed by Jun Yang
parent bc87e19e3e
commit 6a7c280f04
4 changed files with 46 additions and 46 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ export interface OperatorMap {
[key: string]: (lhs: any, rhs: any, ctx: Context) => boolean;
}
export const operatorImpls: OperatorMap = {
export const Operators: OperatorMap = {
'==': (l: any, r: any) => {
if (isComparable(l)) return l.equals(r)
if (isComparable(r)) return r.equals(l)