import type { Calculator } from '../types' ; import { equal } from './equal' ; import { greaterThan } from './greaterThan' ; type GreaterThanOrEqualCalculator < TAmount > = Calculator < TAmount > ; param calculator returns export function greaterThanOrEqual < TAmount > ( calculator ) { return ( subject , comparator ) => { return ( greaterThan ( calculator ) ( subject , comparator ) || equal ( calculator ) ( subject , comparator ) ) ; } ; }