Fix typescript and svelte warnings

This commit is contained in:
ari 2025-04-21 22:56:12 -04:00
parent bba230920b
commit 9a2ea50420
No known key found for this signature in database
3 changed files with 3 additions and 12 deletions

View file

@ -16,7 +16,7 @@
});
});
// Infinite loading function
const onInfinite = ({ detail: { loaded, complete } }) => {
const onInfinite = ({ detail: { loaded, complete } } : { detail : { loaded : () => void, complete : () => void}}) => {
getNextPosts().then((newPosts) => {
if (newPosts.length > 0) {
posts = [...posts, ...newPosts];
@ -53,11 +53,7 @@
<PostComponent post={postObject as Post} />
{/each}
<InfiniteLoading on:infinite={onInfinite}
id="infiniteLoading"
distance={0}
threshold={0}
useWindow={false}
forceUseWindow={false}
/>
<div id="spacer"></div>
</div>