From a7d91f05f932783fbcace3ac8ae65cdd6dd0f5a6 Mon Sep 17 00:00:00 2001 From: saberzero1 Date: Sat, 14 Mar 2026 23:04:10 +0100 Subject: [PATCH] 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 --- quartz.lock.json | 4 ++-- quartz/plugins/index.ts | 24 +++++++++++++++++------- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/quartz.lock.json b/quartz.lock.json index 42be26830..9a554ed8f 100644 --- a/quartz.lock.json +++ b/quartz.lock.json @@ -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", diff --git a/quartz/plugins/index.ts b/quartz/plugins/index.ts index 4784303a0..269236936 100644 --- a/quartz/plugins/index.ts +++ b/quartz/plugins/index.ts @@ -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