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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user