frontend/.pnpm-store/v3/files/89/084e7d1cc9af5521a2eef5a2a320e471c3122d90bdf820335160131743387b8ec48ee68af301e72c1f6977270d63d0e0fc5486ea2c142f8878d6d92a8b58d8

23 lines
462 B
Plaintext

/**
* Base Storage class. All storage implementation must inherit this class
*/
import { TData } from '../types';
declare abstract class Storage<I> {
/**
* Returns all rows based on ...args
* @param args
*/
abstract get(...args: any[]): Promise<StorageResponse>;
/**
* To set all rows
*
* @param data
*/
set?(data: I | Function): this;
}
export interface StorageResponse {
data: TData;
total: number;
}
export default Storage;