mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-21 21:45:42 -05:00
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
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:
parent
821e124ca2
commit
a7d91f05f9
@ -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",
|
||||
|
||||
@ -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
|
||||
} & Partial<{
|
||||
tags: string[]
|
||||
description?: string
|
||||
socialDescription?: string
|
||||
lang?: string
|
||||
[key: string]: unknown
|
||||
}
|
||||
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user