svelte-infinite-loading
Advanced tools
Comparing version 1.3.4 to 1.3.5
{ | ||
"name": "svelte-infinite-loading", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "An infinite scroll component for Svelte apps", | ||
@@ -5,0 +5,0 @@ "svelte": "src/index.js", |
/// <reference types="svelte" /> | ||
import { SvelteComponentTyped } from 'svelte'; | ||
import { SvelteComponentDev } from 'svelte/internal'; | ||
export type SpinnerType = 'default' | 'bubbles' | 'circles' | 'spiral' | 'wavedots'; | ||
@@ -70,3 +69,3 @@ export type DirectionType = 'top' | 'bottom'; | ||
*/ | ||
noResults: {}, | ||
noResults: {}; | ||
@@ -77,3 +76,3 @@ /** | ||
*/ | ||
noMore: {}, | ||
noMore: {}; | ||
@@ -83,3 +82,3 @@ /** | ||
*/ | ||
error: { attemptLoad: () => void }, | ||
error: { attemptLoad: () => void }; | ||
@@ -89,3 +88,3 @@ /** | ||
*/ | ||
spinner: { isFirstLoad: boolean } | ||
spinner: { isFirstLoad: boolean }; | ||
} | ||
@@ -102,3 +101,3 @@ | ||
*/ | ||
loaded (): void; | ||
loaded(): void; | ||
@@ -110,3 +109,3 @@ /** | ||
*/ | ||
complete (): void; | ||
complete(): void; | ||
@@ -116,3 +115,3 @@ /** | ||
*/ | ||
error (): void; | ||
error(): void; | ||
@@ -122,3 +121,3 @@ /** | ||
*/ | ||
reset (): void; | ||
reset(): void; | ||
} | ||
@@ -143,45 +142,3 @@ | ||
*/ | ||
export default class InfiniteLoading extends SvelteComponentDev { | ||
/** | ||
* Props | ||
* | ||
* @internal This is for type checking capabilities only | ||
* and does not exist at runtime. Don't use this property. | ||
*/ | ||
$$prop_def: InfiniteLoadingProps; | ||
/** | ||
* Events | ||
* | ||
* @internal This is for type checking capabilities only | ||
* and does not exist at runtime. Don't use this property. | ||
*/ | ||
$$events_def: InfiniteLoadingEvents; | ||
/** | ||
* Slots | ||
* | ||
* @internal This is for type checking capabilities only | ||
* and does not exist at runtime. Don't use this property. | ||
*/ | ||
$$slot_def: InfiniteLoadingSlots; | ||
constructor (options: { | ||
// Only allow predefined props: | ||
props?: InfiniteLoadingProps; | ||
// Other options... | ||
target: Element; | ||
anchor?: Element; | ||
hydrate?: boolean; | ||
intro?: boolean; | ||
$$inline?: boolean; | ||
}); | ||
$set (props?: InfiniteLoadingProps): void; | ||
$on<K extends keyof InfiniteLoadingEvents> (event: K, callback: (event: InfiniteLoadingEvents[K]) => void): () => void; | ||
$on<T = any>(event: string, callback: (event: CustomEvent<T>) => void): () => void; | ||
export default class InfiniteLoading extends SvelteComponentTyped<InfiniteLoadingProps, InfiniteLoadingEvents, InfiniteLoadingSlots> { | ||
} |
124439
2735