svelte-magic-scroller
Version:
[](https://www.npmjs.com/package/svelte-magic-scroller) [](https://www.npmjs.com/package/svelte-magic-scrolle
30 lines (29 loc) • 753 B
TypeScript
export default MagicItem;
type MagicItem = {
$on?(type: string, callback: (e: any) => void): () => void;
$set?(props: Partial<$$ComponentProps>): void;
};
declare const MagicItem: import("svelte").Component<{
component: any;
width?: any;
height?: any;
transform?: Record<string, any>;
isTouchMove: any;
isInView?: Record<string, any>;
class?: string;
style?: string;
index: any;
isMounted: any;
}, {}, "width" | "height" | "transform" | "isInView">;
type $$ComponentProps = {
component: any;
width?: any;
height?: any;
transform?: Record<string, any>;
isTouchMove: any;
isInView?: Record<string, any>;
class?: string;
style?: string;
index: any;
isMounted: any;
};