UNPKG
@dexpenses/rule-conditions
Version:
latest (1.2.5)
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.0
1.0.5
1.0.4
1.0.3
Condition engine and parser for Dexpenses rules
dexmo007/dexpenses-rule-conditions
@dexpenses/rule-conditions
/
lib
/
condition
/
AmountCondition.d.ts
10 lines
(9 loc)
•
301 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
Condition
from
'./Condition'
;
import
{
Operator
}
from
'../Operator'
;
import
{
Receipt
}
from
'@dexpenses/core'
;
export
default
class
AmountCondition
implements
Condition
{
private
value;
private
cmp;
constructor
(
op
:
Operator
,
value
:
number
);
test
(
receipt
:
Receipt
):
boolean
; }