From 5496646f161460f7e0ebb54e5b7c46ddf07193bb Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Mon, 27 Sep 2021 08:47:34 -0700 Subject: [PATCH] [chore] fix VS Code syntax highlighting --- packages/kit/src/runtime/client/renderer.js | 6 ++++-- packages/kit/src/runtime/client/start.js | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/kit/src/runtime/client/renderer.js b/packages/kit/src/runtime/client/renderer.js index 9f9506232c43..2ef07f2d66f1 100644 --- a/packages/kit/src/runtime/client/renderer.js +++ b/packages/kit/src/runtime/client/renderer.js @@ -63,13 +63,15 @@ function initial_fetch(resource, opts) { } export class Renderer { - /** @param {{ + /** + * @param {{ * Root: CSRComponent; * fallback: [CSRComponent, CSRComponent]; * target: Node; * session: any; * host: string; - * }} opts */ + * }} opts + */ constructor({ Root, fallback, target, session, host }) { this.Root = Root; this.fallback = fallback; diff --git a/packages/kit/src/runtime/client/start.js b/packages/kit/src/runtime/client/start.js index 4af7187db07a..3c5a7712dfd3 100644 --- a/packages/kit/src/runtime/client/start.js +++ b/packages/kit/src/runtime/client/start.js @@ -7,7 +7,8 @@ import { Renderer } from './renderer.js'; import { init } from './singletons.js'; import { set_paths } from '../paths.js'; -/** @param {{ +/** + * @param {{ * paths: { * assets: string; * base: string; @@ -24,7 +25,8 @@ import { set_paths } from '../paths.js'; * nodes: Array>; * page: import('types/page').Page; * }; - * }} opts */ + * }} opts + */ export async function start({ paths, target, session, host, route, spa, trailing_slash, hydrate }) { if (import.meta.env.DEV && !target) { throw new Error('Missing target element. See https://kit.svelte.dev/docs#configuration-target');