fix: resolve frontmatter type declaration conflict between plugins and index.ts
Some checks failed
Build and Test / build-and-test (ubuntu-latest) (push) Has been skipped
Build and Test / publish-tag (push) Has been skipped
Deploy v5 Preview / Deploy v5 to Cloudflare Pages (push) Has been skipped
Docker build & push image / build (push) Has been skipped
Build and Test / build-and-test (macos-latest) (push) Has been cancelled
Build and Test / build-and-test (windows-latest) (push) Has been cancelled

- 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
No known key found for this signature in database
2 changed files with 19 additions and 9 deletions

View File

@ -94,8 +94,8 @@
"description": {
"source": "github:quartz-community/description",
"resolved": "https://github.com/quartz-community/description.git",
"commit": "dc5ab1db584d16e3914332a5bf1cbcbff36d7c5b",
"installedAt": "2026-03-14T21:47:06.025Z"
"commit": "84a4e4da48a0a2dd5c98f1f9ee9880f58b30e5bb",
"installedAt": "2026-03-14T22:03:01.474Z"
},
"encrypted-pages": {
"source": "github:quartz-community/encrypted-pages",

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