@elsikora/git-branch-lint
Version:
Lint your git branch names
15 lines (14 loc) • 506 B
TypeScript
import type { IBranchRepository } from "../../domain/interface/branch.repository.interface";
/**
* Use case for creating a new branch
*/
export declare class CreateBranchUseCase {
private readonly branchRepository;
constructor(branchRepository: IBranchRepository);
/**
* Execute the use case
* @param branchName The name of the branch to create
* @throws {BranchAlreadyExistsError} When trying to create current branch
*/
execute(branchName: string): Promise<void>;
}