(
vs: TypeWithGnomeVersion,
version: V
)
| 166 | /// |
| 167 | /// See `gnomeVersionGreaterOrEqualTo` |
| 168 | export 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 | /// |
nothing calls this directly
no test coverage detected