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

Function increment

packages/effect/src/SemVer.ts:219–222  ·  view source on GitHub ↗
(value: number, label: string)

Source from the content-addressed store, hash-verified

217}
218
219const increment = (value: number, label: string): number => {
220 if (value >= Number.MAX_SAFE_INTEGER) return invalid(`${label} cannot be incremented past Number.MAX_SAFE_INTEGER`)
221 return value + 1
222}
223
224/**
225 * Checks whether a value is a `SemVer`.

Callers 5

bumpMajorFunction · 0.70
bumpMinorFunction · 0.70
bumpPatchFunction · 0.70
SemVer.tsFile · 0.70
nextPrereleaseFunction · 0.70

Calls 1

invalidFunction · 0.70

Tested by

no test coverage detected