mirror of
https://git.witchcraft.systems/scientific-witchery/pds-dash.git
synced 2025-06-08 07:54:05 +10:00
Fix typescript and svelte warnings
This commit is contained in:
parent
bba230920b
commit
9a2ea50420
3 changed files with 3 additions and 12 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue