Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function isSemVerRange
Deprecated
Deprecated

(will be removed in 0.216.0) Use isRange instead.

import { isSemVerRange } from "https://deno.land/std@0.215.0/semver/is_semver_range.ts";

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.

Parameters

value: unknown

The value to check if its a valid SemVerRange

Returns

value is SemVerRange

True if its a valid SemVerRange otherwise false.