MCPcopy Create free account
hub / github.com/Effect-TS/effect / bound

Function bound

packages/effect/src/SemVerRange.ts:462–466  ·  view source on GitHub ↗
(
  operator: Bound["operator"],
  [major = 0, minor = 0, patch = 0]: ReadonlyArray<number>,
  prerelease: ReadonlyArray<string | number>
)

Source from the content-addressed store, hash-verified

460}
461
462const bound = (
463 operator: Bound["operator"],
464 [major = 0, minor = 0, patch = 0]: ReadonlyArray<number>,
465 prerelease: ReadonlyArray<string | number>
466): Bound => ({ operator, major, minor, patch, prerelease })
467
468// The expansions below follow node-semver's `Range` desugaring. `z` is the
469// pre-release a wildcard lower bound carries: `[0]` when pre-releases are

Callers 4

belowFunction · 0.70
floorFunction · 0.70
expandXRangeFunction · 0.70
expandFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected