Jacky Zhao
2023-07-10 08f8e3b4a4879dd7c91c16fbce80c4f2bc5e357f
quartz/components/types.ts
@@ -8,9 +8,12 @@
  externalResources: StaticResources
  fileData: QuartzPluginData
  cfg: GlobalConfiguration
  children: QuartzComponent[] | JSX.Element[]
  children: (QuartzComponent | JSX.Element)[]
  tree: Node<QuartzPluginData>
  position?: 'sidebar' | 'header' | 'body'
  allFiles: QuartzPluginData[]
  displayClass?: 'mobile-only' | 'desktop-only'
} & JSX.IntrinsicAttributes & {
  [key: string]: any
}
export type QuartzComponent = ComponentType<QuartzComponentProps> & {
@@ -18,3 +21,5 @@
  beforeDOMLoaded?: string,
  afterDOMLoaded?: string,
}
export type QuartzComponentConstructor<Options extends object | undefined = undefined> = (opts: Options) => QuartzComponent