MCPcopy Create free account
hub / github.com/code-forge-io/react-router-devtools / isKnownVersion

Function isKnownVersion

docs/app/utils/version-resolvers.ts:9–10  ·  view source on GitHub ↗
(v: string | undefined)

Source from the content-addressed store, hash-verified

7export const getLatestVersion = () => versions[0]
8
9export const isKnownVersion = (v: string | undefined): v is Version =>
10 typeof v === "string" && versions.includes(v as Version)
11
12function isUnknownVersion(v?: string) {
13 return typeof v === "string" && !isKnownVersion(v)

Callers 4

onChangeFunction · 0.90
isUnknownVersionFunction · 0.85
normalizeVersionFunction · 0.85
resolveVersionForLayoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…