GitCommitAPI: { getGitCommitDiff: ( options: GitCommitDiffOptions, ) => Promise<GitCommitRaw[]>; parseCommitsToMarkdownStr: ( commits: Commit[], options: { baseUrl: string; capitalize: boolean; emoji: boolean; from: string; group?: boolean | "multiple"; name: string; repo: string; scopeMap: Record<string, string>; scopeName?: string; titles: { breakingChanges?: string }; to: string; types: Record<string, { title: string }>; }, ) => Promise<string>; parseGitCommits: ( commits: GitCommitRaw[], scopeMap: Record<string, string>, ) => GitCommitRecord[];} = ... 类型声明
parseCommitsToMarkdownStr: (
commits: Commit[],
options: {
baseUrl: string;
capitalize: boolean;
emoji: boolean;
from: string;
group?: boolean | "multiple";
name: string;
repo: string;
scopeMap: Record<string, string>;
scopeName?: string;
titles: { breakingChanges?: string };
to: string;
types: Record<string, { title: string }>;
},
) => Promise<string>
parseGitCommits: (commits: GitCommitRaw[], scopeMap: Record<string, string>) => GitCommitRecord[]