This repository was archived by the owner on May 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed
packages/vuepress-types/types Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 1
1
import Vue from 'vue'
2
2
import VueRouter , { RouterOptions } from 'vue-router'
3
- import '@vuepress/core/lib/client/plugins/VuePress'
3
+ // TODO: https://github.com/vuejs/vuepress/pull/1892
4
+ // import '@vuepress/core/lib/client/plugins/VuePress'
5
+ import './vuepress-1892'
4
6
import { SiteData } from './context'
5
7
6
8
export type EnhanceApp = ( options : {
Original file line number Diff line number Diff line change
1
+ import Vue , { AsyncComponent } from 'vue'
2
+
3
+ export declare class Store {
4
+ store : Vue
5
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
6
+ $get ( key : string ) : any
7
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
8
+ $set ( key : string , value : any ) : void
9
+ $emit : typeof Vue . prototype . $emit
10
+ $on : typeof Vue . prototype . $on
11
+ }
12
+
13
+ declare class VuePress extends Store {
14
+ isPageExists ( pageKey : string ) : boolean
15
+
16
+ isPageLoaded ( pageKey : string ) : boolean
17
+
18
+ getPageAsyncComponent ( pageKey : string ) : ( ) => Promise < AsyncComponent >
19
+
20
+ loadPageAsyncComponent ( pageKey : string ) : Promise < AsyncComponent >
21
+
22
+ registerPageAsyncComponent ( pageKey : string ) : void
23
+ }
24
+
25
+ declare module 'vue/types/vue' {
26
+ export interface Vue {
27
+ $vuepress : VuePress
28
+ }
29
+ }
You can’t perform that action at this time.
0 commit comments