UNPKG

@magicbell/core

Version:

Official MagicBell API wrapper

12 lines (10 loc) 211 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): Promise<T[]>; }