@r4lrgx/gitmoji
Version: 
🧱 My customized Gitmoji Config - a fork of https://github.com/arvinxx/gitmoji-commit-workflow - just with several bug fixes and a cleaner look.
21 lines (18 loc) • 989 B
TypeScript
import { CommitTypes, CustomCommitTypeNameMap, Config } from '../types/index.js';
import '../../commit-types/types/index.js';
type CommitTypeMap = Record<CommitTypes, CustomCommitTypeNameMap>;
declare const commitTypeMap: CommitTypeMap;
/**
 * Merges custom commit type mappings with defaults
 * @param {Config['customCommitTypeMap']} customCommitTypeMap - Custom type mappings to merge
 * @returns {CommitTypeMap} Combined commit type mapping
 */
declare const defineCommitTypeMap: (customCommitTypeMap: Config["customCommitTypeMap"]) => CommitTypeMap;
/**
 * Formats a commit type for display with optional emoji
 * @param {CommitTypes | string} commitType - The commit type to format
 * @param {Config} config - Configuration object
 * @returns {CommitTypes | string} Formatted commit type display string
 */
declare const displayCommitType: (commitType: CommitTypes | string, config: Config) => CommitTypes | string;
export { commitTypeMap, defineCommitTypeMap, displayCommitType };