import type { Ref } from "vue";

export type LoaderLoadType = 'loading' | 'finished' | 'nomore' | 'error';

export interface ILoaderCommon<P> {
  loadError: Ref<string>;
  loadStatus: Ref<LoaderLoadType>;
  loadData: (params?: P, refresh?: boolean) => Promise<void>;
}