Updated QuartzParser plugin typing

This commit is contained in:
Emile Bangma 2024-09-19 12:28:01 +00:00
parent e8f648dc8d
commit 81d892ffcc

View File

@ -1,4 +1,4 @@
import { PluggableList } from "unified"
import { PluggableList, Pluggable } from "unified"
import { StaticResources } from "../util/resources"
import { ProcessedContent } from "./vfile"
import { QuartzComponent } from "../components/types"
@ -53,7 +53,7 @@ export type QuartzParserPlugin<Options extends OptionType = undefined> = (
export type QuartzParserPluginInstance = {
name: string
textTransform: (ctx: BuildCtx, src: string | Buffer) => string | Buffer
markdownPlugins: (ctx: BuildCtx) => PluggableList
htmlPlugins: (ctx: BuildCtx) => PluggableList
markdownPlugins: (ctx: BuildCtx) => Pluggable
htmlPlugins: (ctx: BuildCtx) => Pluggable
externalResources: (ctx: BuildCtx) => Partial<StaticResources>
}