@elsikora/git-branch-lint
Version:
Lint your git branch names
12 lines (11 loc) • 321 B
TypeScript
/**
* Domain entity representing a Git branch
*/
export declare class Branch {
private readonly VALUE;
constructor(name: string);
getName(): string;
isProhibited(prohibitedNames: ReadonlyArray<string>): boolean;
isTooLong(maxLength?: number): boolean;
isTooShort(minLength?: number): boolean;
}