semantic-version/src/providers/CurrentCommitResolver.ts
Paul Hatcherian 31f4e3fdf0 Rewrite/refactor for v5, migrate to TypeScript (MAJOR)
Set Jest config file in package script

Include module path

Include tests in project folders

Remove index module exports

Hardcode configuration parameters

Move parameter binding into main run function

Use alias imports

Run test sequentially

Remove cleanup (async conflict)

Revert Jest option

Increase test timeout to 15 seconds
2022-04-03 20:28:28 -04:00

13 lines
360 B
TypeScript

/** Resolver to obtain information about the repository */
export interface CurrentCommitResolver {
/**
* Resolves the current commit.
* @returns The current commit.
*/
ResolveAsync(): Promise<string>;
/**
* Returns true if the repository is empty
* @returns True if the repository is empty
*/
IsEmptyRepoAsync(): Promise<boolean>;
}