mirror of https://github.com/vuejs/vitepress
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
502 B
27 lines
502 B
5 years ago
|
// types shared between server and client.
|
||
|
|
||
|
export interface SiteData<ThemeConfig = any> {
|
||
|
title: string
|
||
|
description: string
|
||
|
base: string
|
||
|
head: HeadConfig[]
|
||
|
themeConfig: ThemeConfig
|
||
|
}
|
||
|
|
||
|
export type HeadConfig =
|
||
|
| [string, Record<string, string>]
|
||
|
| [string, Record<string, string>, string]
|
||
|
|
||
|
export interface PageData {
|
||
|
title: string
|
||
|
frontmatter: Record<string, any>
|
||
|
headers: Header[]
|
||
|
lastUpdated: number
|
||
|
}
|
||
|
|
||
|
export interface Header {
|
||
|
level: number
|
||
|
title: string
|
||
|
slug: string
|
||
|
}
|