@ts-dev-tools/core
Version:
TS dev tools Core
18 lines (17 loc) • 732 B
TypeScript
export type ManagedGitHookCommand = string | ((absoluteProjectDir: string) => string);
export type ManagedGitHook = {
name: string;
command: ManagedGitHookCommand;
};
export type AppliedManagedGitHook = {
name: string;
command: string;
legacyCommands: string[];
};
export declare class HooksService {
private constructor();
static consolidateManagedGitHooks(absoluteProjectDir: string, managedGitHooks: ManagedGitHook[], consolidatedManagedGitHooks: Map<string, AppliedManagedGitHook>): void;
static applyManagedGitHooks(absoluteProjectDir: string, managedGitHooks: AppliedManagedGitHook[]): Promise<void>;
private static resolveManagedGitHook;
private static resolveManagedGitHookCommand;
}