UNPKG

@nolebase/vitepress-plugin-git-changelog

Version:

A VitePress plugin that adds a changelog fetched from git to your documentation.

13 lines (12 loc) 424 B
import type { Commit, CommitAuthor } from '../../types'; export interface AuthorInfo extends CommitAuthor { commitsCount: number; } export interface CommitWithAuthorInfo extends Omit<Commit, 'authors'> { authors: AuthorInfo[]; } export declare function useChangelog(): { commits: import("vue").ComputedRef<CommitWithAuthorInfo[]>; authors: import("vue").ComputedRef<AuthorInfo[]>; useHmr: () => void; };