astro-ghostcms/.pnpm-store/v3/files/a3/72d7a456801870888680c6bbfb3...

26 lines
736 B
Plaintext

import SemVer = require("../classes/semver");
import semver = require("../index");
declare namespace inc {
/** Base number to be used for the prerelease identifier */
type IdentifierBase = "0" | "1";
}
/**
* Return the version incremented by the release type (major, premajor, minor, preminor, patch, prepatch, or prerelease), or null if it's not valid.
*/
declare function inc(
version: string | SemVer,
release: semver.ReleaseType,
optionsOrLoose?: boolean | semver.Options,
identifier?: string,
): string | null;
declare function inc(
version: string | SemVer,
release: semver.ReleaseType,
identifier?: string,
identifierBase?: inc.IdentifierBase | false,
): string | null;
export = inc;