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": {
|
"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
|
||||||
tags: string[]
|
} & Partial<{
|
||||||
description?: string
|
tags: string[]
|
||||||
socialDescription?: string
|
aliases: string[]
|
||||||
lang?: string
|
modified: string
|
||||||
[key: string]: unknown
|
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
|
// from created-modified-date transformer
|
||||||
dates: {
|
dates: {
|
||||||
created: Date
|
created: Date
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user