diff --git a/src/runtime/internal/dom.ts b/src/runtime/internal/dom.ts index 91e575ebf6..afc51db283 100644 --- a/src/runtime/internal/dom.ts +++ b/src/runtime/internal/dom.ts @@ -122,7 +122,7 @@ export function set_custom_element_data(node, prop, value) { } } -export function xlink_attr(node, attribute, value) { +export function xlink_attr(node: Element, attribute: string, value: string) { node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value); } diff --git a/src/runtime/internal/utils.ts b/src/runtime/internal/utils.ts index 3b8815cb1d..db5b9c3f3f 100644 --- a/src/runtime/internal/utils.ts +++ b/src/runtime/internal/utils.ts @@ -2,7 +2,7 @@ import { Readable } from 'svelte/store'; export function noop() {} -export const identity = x => x; +export const identity = (x:T) => x; export function assign(tar: T, src: S): T & S { // @ts-ignore