File tree Expand file tree Collapse file tree 5 files changed +40
-37
lines changed Expand file tree Collapse file tree 5 files changed +40
-37
lines changed Original file line number Diff line number Diff line change 1+ import {
2+ UserConfig ,
3+ ThemeConfig ,
4+ DefaultThemeConfig ,
5+ ThemeEntry
6+ } from './lib'
7+
8+ export * from './lib'
9+
10+ /**
11+ * A helper function to define VuePress config file.
12+ *
13+ * @see https://vuepress.vuejs.org/config/
14+ */
15+ export function defineConfig ( config : UserConfig < DefaultThemeConfig > ) : void ;
16+
17+ /**
18+ * A helper function to define VuePress config file, for custom theme.
19+ *
20+ * @see https://vuepress.vuejs.org/config/
21+ */
22+ export function defineConfig4CustomTheme < T extends ThemeConfig = ThemeConfig > (
23+ config : UserConfig < T >
24+ ) : void ;
25+
26+ /**
27+ * A helper function to define VuePress theme entry file.
28+ *
29+ * @see https://vuepress.vuejs.org/theme/option-api.html
30+ */
31+ export function defineThemeEntry ( config : ThemeEntry ) : void ;
Original file line number Diff line number Diff line change 1+ function define ( config ) {
2+ config ;
3+ }
4+ exports . defineConfig = define ;
5+ exports . defineConfig4CustomTheme = define ;
6+ exports . defineThemeEntry = define ;
Original file line number Diff line number Diff line change 2020 },
2121 "license" : " MIT" ,
2222 "author" : " ULIVZ" ,
23- "types" : " lib/index.ts" ,
23+ "main" : " index.js" ,
24+ "types" : " index.d.ts" ,
2425 "dependencies" : {
2526 "webpack-chain" : " ^6.0.0"
2627 },
Original file line number Diff line number Diff line change 1- import {
2- UserConfig ,
3- ThemeConfig ,
4- DefaultThemeConfig ,
5- ThemeEntry
6- } from '@vuepress/types'
7-
81export * from '@vuepress/types'
9-
10- /**
11- * A helper function to define VuePress config file.
12- *
13- * @see https://vuepress.vuejs.org/config/
14- */
15- export function defineConfig ( config : UserConfig < DefaultThemeConfig > ) : void ;
16-
17- /**
18- * A helper function to define VuePress config file, for custom theme.
19- *
20- * @see https://vuepress.vuejs.org/config/
21- */
22- export function defineConfig4CustomTheme < T extends ThemeConfig = ThemeConfig > (
23- config : UserConfig < T >
24- ) : void ;
25-
26- /**
27- * A helper function to define VuePress theme entry file.
28- *
29- * @see https://vuepress.vuejs.org/theme/option-api.html
30- */
31- export function defineThemeEntry ( config : ThemeEntry ) : void ;
Original file line number Diff line number Diff line change 1- function define ( config ) {
2- config
3- }
4- exports . defineConfig = define
5- exports . defineConfig4CustomTheme = define
6- exports . defineThemeEntry = define
1+ module . exports = require ( '@vuepress/types' )
You can’t perform that action at this time.
0 commit comments