Skip to content

Commit

Permalink
missed a spot
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Jun 24, 2024
1 parent db7fe33 commit 07c399e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/repl/src/lib/Output/console/ConsoleLine.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script>
<script lang="ts">
import JSONNode from 'svelte-json-tree';
import ConsoleTable from './ConsoleTable.svelte';
import type { Log } from './console';
/** @type {import('./console').Log} */
export let log;
export let log: Log;
export let depth = 0;
function toggle_group_collapse() {
Expand All @@ -12,8 +12,7 @@
let style;
/** @param {string} text */
function sanitize_css(text) {
function sanitize_css(text: string) {
style ??= document.createElement('span').style;
style.cssText = text;
Expand All @@ -28,8 +27,7 @@
return style.cssText;
}
/** @param {any[]} [args] */
function format_args(args = []) {
function format_args(args: any[] = []) {
if (args.length === 0) return args;
if (typeof args[0] !== 'string') {
Expand Down

0 comments on commit 07c399e

Please sign in to comment.