From a15854244d7ccd5c615dfc4524216767649e1e4a Mon Sep 17 00:00:00 2001 From: Ryan Atkinson Date: Wed, 11 Sep 2024 16:20:36 -0600 Subject: [PATCH] fix `Dialog_Params['dialog_props']` type to be partial --- .changeset/wise-hounds-explode.md | 5 +++++ src/lib/dialog.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/wise-hounds-explode.md diff --git a/.changeset/wise-hounds-explode.md b/.changeset/wise-hounds-explode.md new file mode 100644 index 000000000..e649f58a1 --- /dev/null +++ b/.changeset/wise-hounds-explode.md @@ -0,0 +1,5 @@ +--- +'@ryanatkn/fuz': patch +--- + +fix `Dialog_Params['dialog_props']` type to be partial diff --git a/src/lib/dialog.ts b/src/lib/dialog.ts index 16034583c..ad8e37ca1 100644 --- a/src/lib/dialog.ts +++ b/src/lib/dialog.ts @@ -11,7 +11,7 @@ import type Dialog from '$lib/Dialog.svelte'; export const to_dialog_params = >( Component: T, props: ComponentProps, - dialog_props?: ComponentProps, + dialog_props?: Partial>, ): Dialog_Params => ({ Component, props, @@ -28,7 +28,7 @@ export const to_dialog_params = >( export interface Dialog_Params = Component> { Component: T; props: ComponentProps; - dialog_props?: ComponentProps | undefined; + dialog_props?: Partial> | undefined; } export type Dialog_Layout = 'centered' | 'page';