Remove unused code and refactor types importing

This commit is contained in:
2022-06-21 20:03:26 +02:00
parent 23b0035272
commit f0173bb828
15 changed files with 17 additions and 31 deletions

View File

@@ -6,8 +6,7 @@
import { quartOut } from 'svelte/easing'
import dayjs from 'dayjs'
import relativeTime from 'dayjs/plugin/relativeTime.js'
import anime from 'animejs'
import type { AnimeTimelineInstance } from 'animejs'
import anime, { type AnimeTimelineInstance } from 'animejs'
import { fetchAPI } from '$utils/api'
import { map, lerp, throttle } from '$utils/functions'
// Components
@@ -262,7 +261,7 @@
})
// Photos MutationObserver
mutationPhotos = new MutationObserver((mutationsList, observer) => {
mutationPhotos = new MutationObserver((mutationsList) => {
for (const mutation of mutationsList) {
// When adding new childs
if (mutation.type === 'childList') {