@fakel/rest-admin
Version:
An application that makes it easier to work with your API
27 lines (26 loc) • 1.04 kB
TypeScript
import type { DataProviderT } from '../@types/dataProvider';
declare type GetDataOptions = {
withReferences?: boolean;
reference?: string[];
};
export declare class ListStore {
dataSource: Array<any>;
ids: number[];
total: number;
loading: boolean;
references: any[];
constructor();
deleteSelectedRecords(ids: any[]): void;
deleteRecords(dataProvider: DataProviderT, resource: string, ids: any[]): Promise<void>;
getReferencesData(dataProvider: DataProviderT, resource: string): Promise<void>;
getReference(name: string): any;
getReferenceById(reference: string, id: number): any;
getReferenceByQuery(reference: string, query: string, value: any): any;
getData(dataProvider: DataProviderT, resource: string, params?: any, options?: GetDataOptions): Promise<void>;
setLoading(loading: boolean): void;
setReferenceData: (data: any) => void;
setDataSource: (data: any) => void;
setTotal: (value: any) => void;
setDataSourceIds: (value: any) => void;
}
export {};