File: inc.d.ts

package info (click to toggle)
node-semver 7.6.1%2B~7.5.8-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,028 kB
  • sloc: javascript: 4,726; makefile: 5
file content (25 lines) | stat: -rw-r--r-- 736 bytes parent folder | download
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;