File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
packages/repl/src/lib/Output/console Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
- <script >
1
+ <script lang = " ts " >
2
2
import JSONNode from ' svelte-json-tree' ;
3
3
import ConsoleTable from ' ./ConsoleTable.svelte' ;
4
+ import type { Log } from ' ./console' ;
4
5
5
- /** @type {import('./console').Log} */
6
- export let log;
6
+ export let log: Log ;
7
7
export let depth = 0 ;
8
8
9
9
function toggle_group_collapse() {
12
12
13
13
let style;
14
14
15
- /** @param {string} text */
16
- function sanitize_css (text ) {
15
+ function sanitize_css(text : string ) {
17
16
style ?? = document .createElement (' span' ).style ;
18
17
style .cssText = text ;
19
18
28
27
return style .cssText ;
29
28
}
30
29
31
- /** @param {any[]} [args] */
32
- function format_args (args = []) {
30
+ function format_args(args : any [] = []) {
33
31
if (args .length === 0 ) return args ;
34
32
35
33
if (typeof args [0 ] !== ' string' ) {
You can’t perform that action at this time.
0 commit comments