slightning-coco-widget
Version:
SLIGHTNING 的 CoCo 控件框架。
10 lines (9 loc) • 427 B
TypeScript
import type { FC, ReactNode } from 'react';
import { NativeProps } from '../../utils/native-props';
export declare type InfiniteScrollProps = {
loadMore: (isRetry: boolean) => Promise<void>;
hasMore: boolean;
threshold?: number;
children?: ReactNode | ((hasMore: boolean, failed: boolean, retry: () => void) => ReactNode);
} & NativeProps;
export declare const InfiniteScroll: FC<InfiniteScrollProps>;