| 1 | declare module 'vue' { |
| 2 | import type { ShallowUnwrapRef } from 'vue' |
| 3 | |
| 4 | type SlideContext = ShallowUnwrapRef<import('./context').SlideContext> |
| 5 | interface ComponentCustomProperties extends SlideContext { |
| 6 | } |
| 7 | } |
| 8 | |
| 9 | declare module 'vue-router' { |
| 10 | import type { TransitionGroupProps } from 'vue' |
| 11 | |
| 12 | interface RouteMeta { |
| 13 | // inherited from frontmatter |
| 14 | layout?: string |
| 15 | name?: string |
| 16 | class?: string |
| 17 | clicks?: number |
| 18 | transition?: string | TransitionGroupProps | undefined |
| 19 | preload?: boolean |
| 20 | |
| 21 | // slide info |
| 22 | slide?: Omit<import('@slidev/types').SlideInfo, 'source'> & { |
| 23 | noteHTML: string |
| 24 | filepath: string |
| 25 | start: number |
| 26 | sourceIndex: number |
| 27 | id: number |
| 28 | no: number |
| 29 | } |
| 30 | |
| 31 | // private fields |
| 32 | __clicksContext: import('@slidev/types').ClicksContext | null |
| 33 | __preloaded?: boolean |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | export {} |
| 38 |