Type inputs

This commit is contained in:
Adria Navarro 2025-02-10 17:40:34 +01:00
parent 973f6e6ae8
commit 22d2eb2ff7
1 changed files with 7 additions and 2 deletions

View File

@ -10,6 +10,7 @@
closeBracketsKeymap,
acceptCompletion,
completionStatus,
CompletionContext,
} from "@codemirror/autocomplete"
import {
lineNumbers,
@ -44,11 +45,15 @@
import { javascript } from "@codemirror/lang-javascript"
import { EditorModes } from "./"
import { themeStore } from "@/stores/portal"
import type { EditorMode } from "@budibase/types"
import type { BindingCompletion, EditorMode } from "@budibase/types"
export let label: string | undefined = undefined
// TODO: work out what best type fits this
export let completions: any[] = []
export let completions: ((context: CompletionContext) => Promise<{
from: number
filter: boolean
options: BindingCompletion[]
} | null>)[] = []
export let mode: EditorMode = EditorModes.Handlebars
export let value: string | null = ""
export let placeholder: string | null = null