File tree 1 file changed +37
-0
lines changed
packages/@vuepress/types/src
1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,39 @@ export interface Page<
91
91
date : string ;
92
92
}
93
93
94
+ /**
95
+ * Resolve theme.
96
+ */
97
+ export interface ResolvedTheme {
98
+ /**
99
+ * Theme's directory
100
+ */
101
+ path : string ;
102
+ /**
103
+ * Theme's full name
104
+ */
105
+ name : string ;
106
+ /**
107
+ * Theme's short name
108
+ */
109
+ shortcut : string ;
110
+ /**
111
+ * Theme entry path.
112
+ */
113
+ entry : string ;
114
+ }
115
+
116
+ /**
117
+ * Theme API.
118
+ */
119
+ export interface ThemeAPI {
120
+ theme : ResolvedTheme ;
121
+ parentTheme : ResolvedTheme ;
122
+ existsParentTheme : boolean ;
123
+ componentMap : Record < string , any > ;
124
+ layoutComponentMap : Record < string , any > ;
125
+ }
126
+
94
127
/**
95
128
* Context API
96
129
*
@@ -136,4 +169,8 @@ export interface Context<
136
169
* VuePress Config.
137
170
*/
138
171
siteConfig : C ;
172
+ /**
173
+ * Theme API.
174
+ */
175
+ themeAPI : ThemeAPI ;
139
176
}
You can’t perform that action at this time.
0 commit comments