mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-31 00:34:05 -06:00
Updated QuartzParser plugin typing
This commit is contained in:
parent
e8f648dc8d
commit
81d892ffcc
@ -1,4 +1,4 @@
|
|||||||
import { PluggableList } from "unified"
|
import { PluggableList, Pluggable } from "unified"
|
||||||
import { StaticResources } from "../util/resources"
|
import { StaticResources } from "../util/resources"
|
||||||
import { ProcessedContent } from "./vfile"
|
import { ProcessedContent } from "./vfile"
|
||||||
import { QuartzComponent } from "../components/types"
|
import { QuartzComponent } from "../components/types"
|
||||||
@ -53,7 +53,7 @@ export type QuartzParserPlugin<Options extends OptionType = undefined> = (
|
|||||||
export type QuartzParserPluginInstance = {
|
export type QuartzParserPluginInstance = {
|
||||||
name: string
|
name: string
|
||||||
textTransform: (ctx: BuildCtx, src: string | Buffer) => string | Buffer
|
textTransform: (ctx: BuildCtx, src: string | Buffer) => string | Buffer
|
||||||
markdownPlugins: (ctx: BuildCtx) => PluggableList
|
markdownPlugins: (ctx: BuildCtx) => Pluggable
|
||||||
htmlPlugins: (ctx: BuildCtx) => PluggableList
|
htmlPlugins: (ctx: BuildCtx) => Pluggable
|
||||||
externalResources: (ctx: BuildCtx) => Partial<StaticResources>
|
externalResources: (ctx: BuildCtx) => Partial<StaticResources>
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user