返回 slidev
config.ts
根目录 / packages / types / src / config.ts
1 import type { ExportArgs } from './cli'
2 import type { HeadmatterConfig } from './frontmatter'
3
4 export interface ResolvedSlidevConfigSub {
5 export: ResolvedExportOptions
6 drawings: ResolvedDrawingsOptions
7 fonts: ResolvedFontOptions
8 aspectRatio: number
9 }
10
11 export interface SlidevConfig extends
12 Omit<Required<HeadmatterConfig>, keyof ResolvedSlidevConfigSub>,
13 ResolvedSlidevConfigSub {
14 }
15
16 export interface ResolvedFontOptions {
17 sans: string[]
18 mono: string[]
19 serif: string[]
20 weights: string[]
21 italic: boolean
22 provider: 'none' | 'google' | 'coollabs'
23 webfonts: string[]
24 local: string[]
25 }
26
27 export interface ResolvedDrawingsOptions {
28 persist: string | false
29 enabled: boolean | 'dev' | 'build'
30 presenterOnly: boolean
31 syncAll: boolean
32 }
33
34 export interface ResolvedExportOptions extends Omit<ExportArgs, 'entry' | 'theme'> {
35 withClicks?: boolean
36 executablePath?: string
37 withToc?: boolean
38 }
39
39 lines TYPESCRIPT