Skip to content

Commit

Permalink
fix: expose Modifier type
Browse files Browse the repository at this point in the history
We have added the Modifier type to the public API, as it is expected
that users can modify the list of pre-releases.
  • Loading branch information
Kevin-de-Jong committed Jul 28, 2024
1 parent 5d97b50 commit 14ac226
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@

export { ISemVer, SemVer, SemVerIncrement } from "./semver";
export { ICalVer, CalVer, CalVerIncrement } from "./calver";
export { Modifier } from "./modifiers";
export { IComparable, IVersion } from "./interfaces";
6 changes: 5 additions & 1 deletion src/modifiers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
*/

/**
* @internal
* Pre-release modifier
* @type Modifier
* @member identifier Identifier of the modifier
* @member value Value of the modifier
* @member length Length of the value
*/
export type Modifier = { identifier?: string; value: number; length: number };

Expand Down

0 comments on commit 14ac226

Please sign in to comment.