From 5629a15d3b7476d3a4cc45781c7ad9b17111957b Mon Sep 17 00:00:00 2001 From: Daniel Lautzenheiser Date: Fri, 21 Apr 2023 13:04:56 -0400 Subject: [PATCH] fix; types for custom card and preview --- packages/core/src/lib/registry.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/core/src/lib/registry.ts b/packages/core/src/lib/registry.ts index 3655976d..1541fba3 100644 --- a/packages/core/src/lib/registry.ts +++ b/packages/core/src/lib/registry.ts @@ -118,7 +118,10 @@ export function getPreviewStyles() { /** * Preview Templates */ -export function registerPreviewTemplate(name: string, component: TemplatePreviewComponent) { +export function registerPreviewTemplate( + name: string, + component: TemplatePreviewComponent, +) { registry.templates[name] = component as TemplatePreviewComponent; } @@ -129,7 +132,10 @@ export function getPreviewTemplate(name: string): TemplatePreviewComponent(name: string, component: TemplatePreviewCardComponent) { +export function registerPreviewCard( + name: string, + component: TemplatePreviewCardComponent, +) { registry.cards[name] = component as TemplatePreviewCardComponent; }