@vuepress/shared
Advanced tools
Comparing version 2.0.0-alpha.15 to 2.0.0-alpha.18
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.0.0-alpha.18](https://github.com/vuepress/vuepress-next/compare/v2.0.0-alpha.17...v2.0.0-alpha.18) (2021-01-17) | ||
### Features | ||
* **shared:** optimize frontmatter type and support generics ([8a7025f](https://github.com/vuepress/vuepress-next/commit/8a7025ff39b4656f98f9a35e93848373ce72ddbe)) | ||
# [2.0.0-alpha.15](https://github.com/vuepress/vuepress-next/compare/v2.0.0-alpha.14...v2.0.0-alpha.15) (2021-01-04) | ||
@@ -8,0 +19,0 @@ |
@@ -48,13 +48,12 @@ import type { HeadConfig } from './head'; | ||
*/ | ||
export interface PageFrontmatter { | ||
layout?: string | unknown; | ||
permalink?: string | unknown; | ||
export declare type PageFrontmatter<T extends Record<any, any> = Record<string, unknown>> = Partial<T> & { | ||
layout?: string; | ||
permalink?: string; | ||
permalinkPattern?: string; | ||
date?: string | Date | unknown; | ||
lang?: string | unknown; | ||
title?: string | unknown; | ||
description?: string | unknown; | ||
head?: HeadConfig[] | unknown; | ||
[key: string]: unknown; | ||
} | ||
date?: string | Date; | ||
lang?: string; | ||
title?: string; | ||
description?: string; | ||
head?: HeadConfig[]; | ||
}; | ||
/** | ||
@@ -61,0 +60,0 @@ * Vuepress page header |
@@ -48,13 +48,12 @@ import type { HeadConfig } from './head'; | ||
*/ | ||
export interface PageFrontmatter { | ||
layout?: string | unknown; | ||
permalink?: string | unknown; | ||
export declare type PageFrontmatter<T extends Record<any, any> = Record<string, unknown>> = Partial<T> & { | ||
layout?: string; | ||
permalink?: string; | ||
permalinkPattern?: string; | ||
date?: string | Date | unknown; | ||
lang?: string | unknown; | ||
title?: string | unknown; | ||
description?: string | unknown; | ||
head?: HeadConfig[] | unknown; | ||
[key: string]: unknown; | ||
} | ||
date?: string | Date; | ||
lang?: string; | ||
title?: string; | ||
description?: string; | ||
head?: HeadConfig[]; | ||
}; | ||
/** | ||
@@ -61,0 +60,0 @@ * Vuepress page header |
{ | ||
"name": "@vuepress/shared", | ||
"version": "2.0.0-alpha.15", | ||
"version": "2.0.0-alpha.18", | ||
"description": "Utils that shared between VuePress node and client", | ||
@@ -36,3 +36,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "103c7fb1bfee4012d694b11861494f4c1c1b7f00" | ||
"gitHead": "8227d4387d402a9ac43c6bfbfb1e3b7574193fa9" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
236562
1084