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

Function compareCore

packages/effect/src/SemVer.ts:175–179  ·  view source on GitHub ↗
(self: Core, that: Core)

Source from the content-addressed store, hash-verified

173
174/** @internal */
175export const compareCore = (self: Core, that: Core): -1 | 0 | 1 =>
176 order.Number(self.major, that.major) ||
177 order.Number(self.minor, that.minor) ||
178 order.Number(self.patch, that.patch) ||
179 comparePrerelease(self.prerelease, that.prerelease)
180
181const SemVerProto: Omit<SemVer, "major" | "minor" | "patch" | "prerelease" | "build"> = {
182 [TypeId]: TypeId,

Callers 2

testBoundFunction · 0.90
selectFunction · 0.90

Calls 1

comparePrereleaseFunction · 0.85

Tested by

no test coverage detected