- nextVersion(
version: string,
type?:
| "major"
| "minor"
| "patch"
| "premajor"
| "preminor"
| "prepatch"
| "prerelease",
preid?: string,
): string Parameters
- version: string
Optional
type:
| "major"
| "minor"
| "patch"
| "premajor"
| "preminor"
| "prepatch"
| "prerelease"- preid: string = ''
Returns string
return the next version, Only version types with no more than 3 digits are supported. (Follow the npm version rules)