diff --git a/src/compiler/compile/render_dom/wrappers/Element/Binding.ts b/src/compiler/compile/render_dom/wrappers/Element/Binding.ts index 3c372093f8..b8057ae6d7 100644 --- a/src/compiler/compile/render_dom/wrappers/Element/Binding.ts +++ b/src/compiler/compile/render_dom/wrappers/Element/Binding.ts @@ -239,11 +239,11 @@ function get_event_handler( name: string, snippet: string ): { - uses_context: boolean; - mutation: string; - contextual_dependencies: Set; - snippet?: string; -} { + uses_context: boolean; + mutation: string; + contextual_dependencies: Set; + snippet?: string; + } { const value = get_value_from_dom(renderer, binding.parent, binding); const store = binding.object[0] === '$' ? binding.object.slice(1) : null; diff --git a/src/runtime/internal/ssr.ts b/src/runtime/internal/ssr.ts index 9499a0405d..1ae1ae1d12 100644 --- a/src/runtime/internal/ssr.ts +++ b/src/runtime/internal/ssr.ts @@ -95,7 +95,14 @@ export function create_ssr_component(fn) { render: (props = {}, options = {}) => { on_destroy = []; - const result: { head: string, css: Set<{ map: null, code: string }> } = { head: '', css: new Set() }; + const result: { + head: string; + css: Set<{ + map: null; + code: string; + }>; + } = { head: '', css: new Set() }; + const html = $$render(result, props, {}, options); run_all(on_destroy);