MCPcopy Create free account
hub / github.com/material-shell/material-shell / gnomeVersionLessOrEqualTo

Function gnomeVersionLessOrEqualTo

src/utils/shellVersionMatch.ts:168–175  ·  view source on GitHub ↗
(
    vs: TypeWithGnomeVersion,
    version: V
)

Source from the content-addressed store, hash-verified

166///
167/// See `gnomeVersionGreaterOrEqualTo`
168export function gnomeVersionLessOrEqualTo<V extends VERSIONS[number]>(
169 vs: TypeWithGnomeVersion,
170 version: V
171): vs is {
172 gnome_version: { gt: Tuple<boolean, VERSIONS['length']>; lt: Selector<V> };
173} {
174 return compareVersions(gnomeVersionNumber, parseVersion(version)) <= 0;
175}
176
177/// Checks if the gnome version is exactly equal to the specified version, and narrows a given type to that version.
178///

Callers

nothing calls this directly

Calls 2

compareVersionsFunction · 0.85
parseVersionFunction · 0.85

Tested by

no test coverage detected