Skip to content

Commit 7a21b58

Browse files
committed
lint
1 parent bc74a13 commit 7a21b58

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/repl/src/lib/Output/Viewer.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
import srcdoc_styles from './srcdoc/styles.css?raw';
1212
import ErrorOverlay from './ErrorOverlay.svelte';
1313
import type { CompileError } from 'svelte/compiler';
14-
import type { BundleResult } from '$lib/public';
15-
import type Bundler from '$lib/Bundler.svelte';
14+
import type Bundler from '../Bundler.svelte';
15+
import type { BundleResult } from '../public';
1616
1717
interface Props {
1818
error: Error | null;
@@ -54,7 +54,7 @@
5454
// svelte-ignore state_referenced_locally
5555
let current_log_group = logs;
5656
57-
let iframe: HTMLIFrameElement = $state();
57+
let iframe = $state<HTMLIFrameElement>();
5858
let pending_imports = $state(0);
5959
let pending = false;
6060
@@ -67,7 +67,7 @@
6767
let last_console_event: Log;
6868
6969
onMount(() => {
70-
proxy = new ReplProxy(iframe, {
70+
proxy = new ReplProxy(iframe!, {
7171
on_fetch_progress: (progress) => {
7272
pending_imports = progress;
7373
},
@@ -105,7 +105,7 @@
105105
}
106106
});
107107
108-
iframe.addEventListener('load', () => {
108+
iframe!.addEventListener('load', () => {
109109
proxy?.handle_links();
110110
ready = true;
111111
});

packages/repl/src/lib/Repl.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
// TODO get rid
6868
export function toJSON() {
6969
return {
70-
imports: bundler.result?.imports ?? [],
70+
imports: bundler!.result?.imports ?? [],
7171
files: workspace.files,
7272
tailwind: workspace.tailwind
7373
};

0 commit comments

Comments
 (0)