1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
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;
|