import { isRange } from "https://deno.land/std@0.218.2/semver/mod.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.