Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/semver/constants.ts>INVALID

Deno standard library
Go to Latest
variable INVALID
import { INVALID } from "https://deno.land/std@0.206.0/semver/constants.ts";

A sentinel value used to denote an invalid SemVer object which may be the result of impossible ranges or comparator operations.

Examples

Example 1

import { eq } from "https://deno.land/std@0.206.0/semver/eq.ts";
import { parse } from "https://deno.land/std@0.206.0/semver/parse.ts";
import { INVALID } from "https://deno.land/std@0.206.0/semver/constants.ts"
eq(parse("1.2.3"), INVALID);