mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-28 00:02:42 +00:00
fix(frontend): Fix typing (#1774)
* feat(frontend): Add documentation link in the component settings * feat(frontend): Add missing type * feat(frontend): fix typing errors * feat(frontend): fix typing errors
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { SupportedLanguage } from '$lib/common'
|
||||
import HighlightCode from '$lib/components/HighlightCode.svelte'
|
||||
import { ScriptService } from '$lib/gen'
|
||||
import { getScriptByPath } from '$lib/scripts'
|
||||
@@ -8,7 +9,7 @@
|
||||
export let hash: string | undefined = undefined
|
||||
|
||||
let code: string
|
||||
let language: 'deno' | 'python3' | 'go' | 'bash'
|
||||
let language: SupportedLanguage
|
||||
|
||||
async function loadCode(path: string, hash: string | undefined) {
|
||||
const script = hash
|
||||
|
||||
Reference in New Issue
Block a user