@vuepress/shared 2.0.0-beta.27 → 2.0.0-beta.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/types/page.d.ts +6 -5
- package/lib/esm/types/site.d.ts +1 -1
- package/lib/types/page.d.ts +6 -5
- package/lib/types/site.d.ts +1 -1
- package/package.json +3 -3
package/lib/esm/types/page.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { HeadConfig } from './head';
|
|
|
2
2
|
/**
|
|
3
3
|
* Vuepress page data
|
|
4
4
|
*/
|
|
5
|
-
export declare type PageData<
|
|
5
|
+
export declare type PageData<ExtraPageData extends Record<any, any> = Record<never, never>> = ExtraPageData & {
|
|
6
6
|
/**
|
|
7
7
|
* Identifier of the page
|
|
8
8
|
*
|
|
@@ -50,14 +50,15 @@ export declare type PageData<ExtendedPageData extends Record<any, any> = Record<
|
|
|
50
50
|
* so we cannot guarantee the type safety
|
|
51
51
|
*/
|
|
52
52
|
export declare type PageFrontmatter<T extends Record<any, any> = Record<string, unknown>> = Partial<T> & {
|
|
53
|
+
date?: string | Date;
|
|
54
|
+
description?: string;
|
|
55
|
+
head?: HeadConfig[];
|
|
56
|
+
lang?: string;
|
|
53
57
|
layout?: string;
|
|
54
58
|
permalink?: string;
|
|
55
59
|
permalinkPattern?: string;
|
|
56
|
-
|
|
57
|
-
lang?: string;
|
|
60
|
+
routeMeta?: Record<string, unknown>;
|
|
58
61
|
title?: string;
|
|
59
|
-
description?: string;
|
|
60
|
-
head?: HeadConfig[];
|
|
61
62
|
};
|
|
62
63
|
/**
|
|
63
64
|
* Vuepress page header
|
package/lib/esm/types/site.d.ts
CHANGED
package/lib/types/page.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { HeadConfig } from './head';
|
|
|
2
2
|
/**
|
|
3
3
|
* Vuepress page data
|
|
4
4
|
*/
|
|
5
|
-
export declare type PageData<
|
|
5
|
+
export declare type PageData<ExtraPageData extends Record<any, any> = Record<never, never>> = ExtraPageData & {
|
|
6
6
|
/**
|
|
7
7
|
* Identifier of the page
|
|
8
8
|
*
|
|
@@ -50,14 +50,15 @@ export declare type PageData<ExtendedPageData extends Record<any, any> = Record<
|
|
|
50
50
|
* so we cannot guarantee the type safety
|
|
51
51
|
*/
|
|
52
52
|
export declare type PageFrontmatter<T extends Record<any, any> = Record<string, unknown>> = Partial<T> & {
|
|
53
|
+
date?: string | Date;
|
|
54
|
+
description?: string;
|
|
55
|
+
head?: HeadConfig[];
|
|
56
|
+
lang?: string;
|
|
53
57
|
layout?: string;
|
|
54
58
|
permalink?: string;
|
|
55
59
|
permalinkPattern?: string;
|
|
56
|
-
|
|
57
|
-
lang?: string;
|
|
60
|
+
routeMeta?: Record<string, unknown>;
|
|
58
61
|
title?: string;
|
|
59
|
-
description?: string;
|
|
60
|
-
head?: HeadConfig[];
|
|
61
62
|
};
|
|
62
63
|
/**
|
|
63
64
|
* Vuepress page header
|
package/lib/types/site.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuepress/shared",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.35",
|
|
4
4
|
"description": "Utils that shared between VuePress node and client",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vuepress",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"clean": "rimraf lib *.tsbuildinfo"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@vue/shared": "^3.2.
|
|
31
|
+
"@vue/shared": "^3.2.28"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "4bf1c55b6fb863c9251aa80178d5bc6475f5b315"
|
|
37
37
|
}
|