filesrocket
Version:
Filesrocket is a Node.js package that takes care of the file management of any cloud storage service (Local, Cloudinary, Amazon S3)
11 lines (10 loc) • 535 B
TypeScript
import { ServiceMethods, OutputEntity, Paginated, Params, Query } from '../declarations';
declare type GetParams = Pick<Params, 'path'> & Query;
export declare class BaseController {
protected service: Partial<ServiceMethods<any>>;
constructor(service: Partial<ServiceMethods<any>>);
list(query?: Partial<Params>): Promise<Paginated<OutputEntity> | OutputEntity[]>;
get(id: string, query?: Partial<GetParams>): Promise<OutputEntity>;
remove(id: string, query?: Query): Promise<OutputEntity>;
}
export {};