From e938e55b347711ff342639f5614d325477dc67fd Mon Sep 17 00:00:00 2001 From: saberzero1 Date: Fri, 27 Feb 2026 11:06:21 +0100 Subject: [PATCH] fix: type error in component registry instantiate method --- quartz/components/registry.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/quartz/components/registry.ts b/quartz/components/registry.ts index 5f850d0b8..8aae9aacc 100644 --- a/quartz/components/registry.ts +++ b/quartz/components/registry.ts @@ -47,7 +47,10 @@ class ComponentRegistry { * This prevents duplicate afterDOMLoaded scripts when the same component * appears in multiple page-type layouts. */ - instantiate(constructor: QuartzComponentConstructor, options?: unknown): QuartzComponent { + instantiate( + constructor: QuartzComponentConstructor, + options?: Record, + ): QuartzComponent { const optsKey = options !== undefined ? JSON.stringify(options) : "" // Use constructor identity + serialized options as cache key // We store constructor name as a hint but rely on a unique id for identity