@vuepress/shared
Advanced tools
Comparing version 2.0.0-beta.37 to 2.0.0-beta.38
import type { HeadConfig } from './head'; | ||
/** | ||
* Vuepress page data | ||
* Base type of vuepress page | ||
*/ | ||
export declare type PageData<ExtraPageData extends Record<any, any> = Record<never, never>> = ExtraPageData & { | ||
export declare type PageBase<ExtraPageFrontmatter extends Record<any, any> = Record<string, unknown>> = { | ||
/** | ||
@@ -36,3 +36,3 @@ * Identifier of the page | ||
*/ | ||
frontmatter: PageFrontmatter; | ||
frontmatter: PageFrontmatter<ExtraPageFrontmatter>; | ||
/** | ||
@@ -48,2 +48,6 @@ * Excerpt of the page | ||
/** | ||
* Vuepress page data | ||
*/ | ||
export declare type PageData<ExtraPageData extends Record<any, any> = Record<never, never>, ExtraPageFrontmatter extends Record<any, any> = Record<string, unknown>> = PageBase<ExtraPageFrontmatter> & ExtraPageData; | ||
/** | ||
* Vuepress page frontmatter | ||
@@ -50,0 +54,0 @@ * |
import type { HeadConfig } from './head'; | ||
/** | ||
* Vuepress page data | ||
* Base type of vuepress page | ||
*/ | ||
export declare type PageData<ExtraPageData extends Record<any, any> = Record<never, never>> = ExtraPageData & { | ||
export declare type PageBase<ExtraPageFrontmatter extends Record<any, any> = Record<string, unknown>> = { | ||
/** | ||
@@ -36,3 +36,3 @@ * Identifier of the page | ||
*/ | ||
frontmatter: PageFrontmatter; | ||
frontmatter: PageFrontmatter<ExtraPageFrontmatter>; | ||
/** | ||
@@ -48,2 +48,6 @@ * Excerpt of the page | ||
/** | ||
* Vuepress page data | ||
*/ | ||
export declare type PageData<ExtraPageData extends Record<any, any> = Record<never, never>, ExtraPageFrontmatter extends Record<any, any> = Record<string, unknown>> = PageBase<ExtraPageFrontmatter> & ExtraPageData; | ||
/** | ||
* Vuepress page frontmatter | ||
@@ -50,0 +54,0 @@ * |
{ | ||
"name": "@vuepress/shared", | ||
"version": "2.0.0-beta.37", | ||
"version": "2.0.0-beta.38", | ||
"description": "Utils that shared between VuePress node and client", | ||
@@ -36,3 +36,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "6600a8c1a293b948be977c348eb9907178bb3263" | ||
"gitHead": "7cb24eab18628a66371a367090f7c9c33b519136" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36722
1120