UNPKG

@dinero.js/calculator-number

Version:

Number calculator implementation for Dinero.js

12 lines (11 loc) 417 B
import { ComparisonOperator } from '@dinero.js/core'; import type { BinaryOperation } from '@dinero.js/core'; /** * Compare two numbers. * * @param a - The first number to compare. * @param b - The second number to compare. * * @returns Whether the two numbers are equal, or whether the first one is greater or less than the other. */ export declare const compare: BinaryOperation<number, ComparisonOperator>;