UNPKG

@elsikora/git-branch-lint

Version:
18 lines (17 loc) 496 B
import type { IBranchRepository } from "../../domain/interface/branch.repository.interface"; /** * Use case for getting the current branch name */ export declare class GetCurrentBranchUseCase { private readonly BRANCH_REPOSITORY; /** * Constructor * @param branchRepository The branch repository */ constructor(branchRepository: IBranchRepository); /** * Execute the use case * @returns The current branch name */ execute(): Promise<string>; }