From cbae88fc4e9b98764cfccca2e85f265c4b894573 Mon Sep 17 00:00:00 2001
From: Adam Brangenberg <adambrangenberg@proton.me>
Date: Mon, 31 Jul 2023 04:08:32 +0000
Subject: [PATCH] Removing redundant properties (#356)

---
 quartz/components/types.ts |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/quartz/components/types.ts b/quartz/components/types.ts
index c7584b6..803ada9 100644
--- a/quartz/components/types.ts
+++ b/quartz/components/types.ts
@@ -8,15 +8,20 @@
   externalResources: StaticResources
   fileData: QuartzPluginData
   cfg: GlobalConfiguration
-  children: QuartzComponent[] | JSX.Element[]
+  children: (QuartzComponent | JSX.Element)[]
   tree: Node<QuartzPluginData>
   allFiles: QuartzPluginData[]
-}
+  displayClass?: "mobile-only" | "desktop-only"
+} & JSX.IntrinsicAttributes & {
+    [key: string]: any
+  }
 
 export type QuartzComponent = ComponentType<QuartzComponentProps> & {
-  css?: string,
-  beforeDOMLoaded?: string,
-  afterDOMLoaded?: string,
+  css?: string
+  beforeDOMLoaded?: string
+  afterDOMLoaded?: string
 }
 
-export type QuartzComponentConstructor<Options extends object | undefined = undefined> = (opts: Options) => QuartzComponent
+export type QuartzComponentConstructor<Options extends object | undefined = undefined> = (
+  opts: Options,
+) => QuartzComponent

--
Gitblit v1.10.0