From 31d858c5639df500e1a9c61bd934355c7531f2ce Mon Sep 17 00:00:00 2001 From: Danielo Rodriguez Date: Thu, 14 Sep 2023 14:36:33 +0200 Subject: [PATCH] chore: types --- src/core/formDefinition.ts | 1 + src/views/EditFormView.ts | 2 +- src/views/components/inputBuilderDataview.svelte | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/formDefinition.ts b/src/core/formDefinition.ts index 0237f13b..2c5354b6 100644 --- a/src/core/formDefinition.ts +++ b/src/core/formDefinition.ts @@ -114,6 +114,7 @@ export type EditableInput = { min?: number; max?: number; options?: { value: string; label: string }[]; + query?: string; }; export type EditableFormDefinition = { diff --git a/src/views/EditFormView.ts b/src/views/EditFormView.ts index 5845374a..6f6522dc 100644 --- a/src/views/EditFormView.ts +++ b/src/views/EditFormView.ts @@ -57,7 +57,7 @@ export class EditFormView extends ItemView { onCancel: () => { this.plugin.closeEditForm() }, - onPreview: (formDefinition) => { + onPreview: (formDefinition: FormDefinition) => { this.plugin.api.openForm(formDefinition) }, } diff --git a/src/views/components/inputBuilderDataview.svelte b/src/views/components/inputBuilderDataview.svelte index 1bfbbd9a..522e54d3 100644 --- a/src/views/components/inputBuilderDataview.svelte +++ b/src/views/components/inputBuilderDataview.svelte @@ -2,7 +2,7 @@ import FormRow from "./FormRow.svelte"; export let index: number; - export let value: string; + export let value: string = ""; $: id = `dataview_${index}`;