Skip to content

Commit c0b4cf6

Browse files
committed
feat: Add JSDoc for intellisense
BREAKING CHANGE: There are no breaking changes, this release just marks the solidification of the public API.
1 parent 8370caf commit c0b4cf6

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ import { gitTagDescriptor } from './gitTagDescriptor';
33
import { cleanForSemver, descriptorToString } from './output';
44
import { AbsoluteVersionConfig } from './types';
55

6+
/** Reads the tag information from the git repository, and returns an absolute-version */
67
export const versionFromGitTag = (config?: AbsoluteVersionConfig): string =>
78
descriptorToString(gitTagDescriptor(cleanForSemver, applyDefaults(config)));

src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/** Complete configuration for AbsoluteVersion */
12
export interface AbsoluteVersionConfig {
3+
/** Glob for detecting version tags. The format for the glob is the same as for `git describe --match`. Default is `v[0-9]*` */
24
tagGlob: string;
35
}

0 commit comments

Comments
 (0)