Effort to transition to TypeScript

Remove commit warnings
This commit is contained in:
Michał Gdula 2024-05-02 19:10:21 +01:00
parent 4f0ecd33e4
commit 1486c1b70a
18 changed files with 93 additions and 87 deletions

View file

@ -1,12 +1,11 @@
<script>
import { get } from 'svelte/store';
import Router from 'svelte-spa-router';
import { replace, link } from 'svelte-spa-router';
import active from 'svelte-spa-router/active'
import { TwitterLogo, FacebookLogo, InstagramLogo, TiktokLogo } from 'phosphor-svelte';
import Cart from '%/lib/cart.ts';
import routes from '%/routes.js';
import Cart from './lib/cart';
import routes from './routes';
import Logo from '/LogoAlt.svg';
const links = {
@ -17,7 +16,7 @@
}
let cartLen = 0;
Cart.subscribe((value) => {
Cart.subscribe(() => {
cartLen = Cart.getLength();
});
@ -39,7 +38,7 @@
oldLocation = event.detail.location;
}
function conditionFailure(event) {
function conditionFailure() {
replace("/");
}
</script>