MCPcopy
hub / github.com/gvergnaud/ts-pattern / gt

Function gt

src/patterns.ts:969–972  ·  view source on GitHub ↗
(
  min: min
)

Source from the content-addressed store, hash-verified

967 * .with(P.number.gt(10), () => 'numbers > 10')
968 */
969const gt = <input, const min extends number>(
970 min: min
971): GuardExcludeP<input, number, never> =>
972 when((value) => isNumber(value) && value > min);
973
974/**
975 * `P.number.lte(max)` matches **numbers** smaller than or equal to `max`.

Callers 1

numberChainableFunction · 0.85

Calls 2

whenFunction · 0.85
isNumberFunction · 0.70

Tested by

no test coverage detected