Skip to content

Commit

Permalink
[chore] fix VS Code syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Sep 27, 2021
1 parent 97978cb commit 5496646
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions packages/kit/src/runtime/client/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 4 additions & 2 deletions packages/kit/src/runtime/client/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -24,7 +25,8 @@ import { set_paths } from '../paths.js';
* nodes: Array<Promise<import('types/internal').CSRComponent>>;
* 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');
Expand Down

0 comments on commit 5496646

Please sign in to comment.