UNPKG

@magicbell/core

Version:
11 lines (10 loc) 231 B
export default interface IReader<T> { /** * Get an element by its ID. */ get(id: string | number): Promise<T>; /** * Get items that match the params. */ findBy(queryParams: any): Promise<T[]>; }