UNPKG

vuepress-theme-hope

Version:

A light vuepress theme with tons of features

9 lines (8 loc) 952 B
import type { ThemeDataRef, ThemeLocaleDataRef } from "@vuepress/plugin-theme-data/client"; import type { ClientData } from "vuepress/client"; import type { ThemeData, ThemeLocaleConfig, ThemeNormalPageFrontmatter, ThemePageData } from "../../shared/index.js"; export interface Data<PageFrontmatter extends Record<string, unknown> = ThemeNormalPageFrontmatter, PageData extends Record<string, unknown> = ThemePageData> extends Pick<ClientData<PageFrontmatter, PageData>, "frontmatter" | "head" | "headTitle" | "lang" | "layouts" | "page" | "pageComponent" | "pageLayout" | "redirects" | "routeLocale" | "routePath" | "routes" | "site" | "siteLocale"> { theme: ThemeDataRef<ThemeData>; themeLocale: ThemeLocaleDataRef<ThemeLocaleConfig>; } export declare const useData: <PageFrontmatter extends Record<string, unknown> = ThemeNormalPageFrontmatter, PageData extends Record<string, unknown> = ThemePageData>() => Data<PageFrontmatter, PageData>;