Jacky Zhao
2024-01-26 8fa1a1e7b9de36a93afed138dccb5f6663d40941
fix: allow partial when specifiying layout for emitter plugins
3 files modified
6 ■■■■ changed files
quartz/plugins/emitters/folderPage.tsx 2 ●●● patch | view | raw | blame | history
quartz/plugins/emitters/tagPage.tsx 2 ●●● patch | view | raw | blame | history
quartz/plugins/types.ts 2 ●●● patch | view | raw | blame | history
quartz/plugins/emitters/folderPage.tsx
@@ -19,7 +19,7 @@
import { FolderContent } from "../../components"
import { write } from "./helpers"
export const FolderPage: QuartzEmitterPlugin<FullPageLayout> = (userOpts) => {
export const FolderPage: QuartzEmitterPlugin<Partial<FullPageLayout>> = (userOpts) => {
  const opts: FullPageLayout = {
    ...sharedPageComponents,
    ...defaultListPageLayout,
quartz/plugins/emitters/tagPage.tsx
@@ -16,7 +16,7 @@
import { TagContent } from "../../components"
import { write } from "./helpers"
export const TagPage: QuartzEmitterPlugin<FullPageLayout> = (userOpts) => {
export const TagPage: QuartzEmitterPlugin<Partial<FullPageLayout>> = (userOpts) => {
  const opts: FullPageLayout = {
    ...sharedPageComponents,
    ...defaultListPageLayout,
quartz/plugins/types.ts
@@ -2,7 +2,7 @@
import { StaticResources } from "../util/resources"
import { ProcessedContent } from "./vfile"
import { QuartzComponent } from "../components/types"
import { FilePath, FullSlug } from "../util/path"
import { FilePath } from "../util/path"
import { BuildCtx } from "../util/ctx"
export interface PluginTypes {