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:
saberzero1
2026-03-14 23:04:10 +01:00
parent 821e124ca2
commit a7d91f05f9
2 changed files with 19 additions and 9 deletions

View File

@@ -71,14 +71,24 @@ declare module "vfile" {
htmlAst: HtmlRoot
hasMermaidDiagram: boolean | undefined
// from frontmatter transformer (e.g. note-properties)
frontmatter: {
frontmatter: { [key: string]: unknown } & {
title: string
tags: string[]
description?: string
socialDescription?: string
lang?: string
[key: string]: unknown
}
} & Partial<{
tags: string[]
aliases: string[]
modified: string
created: string
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
dates: {
created: Date