Skip to content

Commit

Permalink
chore: types
Browse files Browse the repository at this point in the history
  • Loading branch information
danielo515 committed Sep 14, 2023
1 parent 2d8e2d6 commit 31d858c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/core/formDefinition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export type EditableInput = {
min?: number;
max?: number;
options?: { value: string; label: string }[];
query?: string;
};

export type EditableFormDefinition = {
Expand Down
2 changes: 1 addition & 1 deletion src/views/EditFormView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class EditFormView extends ItemView {
onCancel: () => {
this.plugin.closeEditForm()
},
onPreview: (formDefinition) => {
onPreview: (formDefinition: FormDefinition) => {
this.plugin.api.openForm(formDefinition)
},
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/components/inputBuilderDataview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import FormRow from "./FormRow.svelte";
export let index: number;
export let value: string;
export let value: string = "";
$: id = `dataview_${index}`;
</script>

Expand Down

0 comments on commit 31d858c

Please sign in to comment.