greaterThanOrEqual
Matcher for a numeric value greater than or equal to the given value.
Matchers are applied through assertObjectMatches, where they narrow the corresponding property type.
import { assertObjectMatches, greaterThanOrEqual } from "@kensio/smartass";
const value: unknown = { attempts: 1,};
assertObjectMatches(value, { attempts: greaterThanOrEqual(1),});
// value is now narrowed to an object with a numeric attempts count// {// attempts: number | bigint;// }Source
Section titled “Source”Source file: src/assert/greater-than-or-equal/greater-than-or-equal.match.ts
