diff --git a/packages/client/src/utils/linkable.js b/packages/client/src/utils/linkable.ts similarity index 61% rename from packages/client/src/utils/linkable.js rename to packages/client/src/utils/linkable.ts index d82a53474b..2b6cd0ebfd 100644 --- a/packages/client/src/utils/linkable.js +++ b/packages/client/src/utils/linkable.ts @@ -1,8 +1,8 @@ import { get } from "svelte/store" -import { link } from "svelte-spa-router" +import { link, LinkActionOpts } from "svelte-spa-router" import { builderStore } from "stores" -export const linkable = (node, href) => { +export const linkable = (node: HTMLElement, href?: LinkActionOpts) => { if (get(builderStore).inBuilder) { node.onclick = e => { e.preventDefault()