fix: resolve frontmatter type declaration conflict between plugins and index.ts
- Removed frontmatter from description plugin's vfile augmentation to avoid conflicting DataMap declarations (TS2717/TS2687) - Aligned frontmatter type in index.ts with note-properties plugin declaration - Updated quartz.lock.json for description plugin
This commit is contained in:
@@ -94,8 +94,8 @@
|
|||||||
"description": {
|
"description": {
|
||||||
"source": "github:quartz-community/description",
|
"source": "github:quartz-community/description",
|
||||||
"resolved": "https://github.com/quartz-community/description.git",
|
"resolved": "https://github.com/quartz-community/description.git",
|
||||||
"commit": "dc5ab1db584d16e3914332a5bf1cbcbff36d7c5b",
|
"commit": "84a4e4da48a0a2dd5c98f1f9ee9880f58b30e5bb",
|
||||||
"installedAt": "2026-03-14T21:47:06.025Z"
|
"installedAt": "2026-03-14T22:03:01.474Z"
|
||||||
},
|
},
|
||||||
"encrypted-pages": {
|
"encrypted-pages": {
|
||||||
"source": "github:quartz-community/encrypted-pages",
|
"source": "github:quartz-community/encrypted-pages",
|
||||||
|
|||||||
@@ -71,14 +71,24 @@ declare module "vfile" {
|
|||||||
htmlAst: HtmlRoot
|
htmlAst: HtmlRoot
|
||||||
hasMermaidDiagram: boolean | undefined
|
hasMermaidDiagram: boolean | undefined
|
||||||
// from frontmatter transformer (e.g. note-properties)
|
// from frontmatter transformer (e.g. note-properties)
|
||||||
frontmatter: {
|
frontmatter: { [key: string]: unknown } & {
|
||||||
title: string
|
title: string
|
||||||
|
} & Partial<{
|
||||||
tags: string[]
|
tags: string[]
|
||||||
description?: string
|
aliases: string[]
|
||||||
socialDescription?: string
|
modified: string
|
||||||
lang?: string
|
created: string
|
||||||
[key: string]: unknown
|
published: string
|
||||||
}
|
description: string
|
||||||
|
socialDescription: string
|
||||||
|
publish: boolean | string
|
||||||
|
draft: boolean | string
|
||||||
|
lang: string
|
||||||
|
enableToc: string
|
||||||
|
cssclasses: string[]
|
||||||
|
socialImage: string
|
||||||
|
comments: boolean | string
|
||||||
|
}>
|
||||||
// from created-modified-date transformer
|
// from created-modified-date transformer
|
||||||
dates: {
|
dates: {
|
||||||
created: Date
|
created: Date
|
||||||
|
|||||||
Reference in New Issue
Block a user