Skip to main content
Go to Latest
function isSemVerRange
import { isSemVerRange } from "";

Does a deep check on the object to determine if its a valid range.

Objects with extra fields are still considered valid if they have at least the correct fields.

Adds a type assertion if true.


value: unknown

The value to check if its a valid SemVerRange


value is SemVerRange

True if its a valid SemVerRange otherwise false.