const checkMinimum = (
  value: number,
  {
    min,
    exclusiveMin = false