@interep/reputation
Version:
Definitions and utility functions of Interep reputation.
20 lines (16 loc) • 320 B
text/typescript
export type Bin = [number, number]
export enum Operator {
Eq = "eq",
Gt = "gt",
Lt = "lt",
Gte = "gte"
}
export type Condition = {
operator: Operator
operand: number | string | boolean
binIndexGrantedIfSatisfied: number
}
export type RuleDef = {
bins: Bin[]
condition: Condition
}