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:
Faton Ramadani
2023-06-27 14:10:40 +02:00
committed by GitHub
parent fa06b48c2b
commit 19e8ea1944
16 changed files with 49 additions and 59 deletions
@@ -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