keep-a-changelog
Version:
Node package to parse and generate changelogs following the [keepachangelog](https://keepachangelog.com/) format.
23 lines • 713 B
TypeScript
import type { Range } from "./types.js";
/**
* 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.
*
* @example Usage
* ```ts
* import { isRange } from "@std/semver/is-range";
* import { assert } from "@std/assert";
*
* const range = [[{ major: 1, minor: 2, patch: 3 }]];
* assert(isRange(range));
* assert(!isRange({}));
* ```
* @param value The value to check if its a valid Range
* @returns True if its a valid Range otherwise false.
*/
export declare function isRange(value: unknown): value is Range;
//# sourceMappingURL=is_range.d.ts.map