UNPKG

@basetime/a2w-api-ts

Version:

Client library that communicates with the addtowallet API.

27 lines (26 loc) 677 B
import { Requester } from '../http/Requester'; import { Image } from '../types/Image'; import Endpoint from './Endpoint'; /** * Communicate with the images endpoints. */ export default class ImagesEndpoint extends Endpoint { /** * Constructor. * * @param req The object to use to make requests. */ constructor(req: Requester); /** * Returns the image with the given ID. * * @param id The ID of the image. */ getById: (id: string) => Promise<Image | null>; /** * Returns the images with the given IDs. * * @param ids The IDs of the images. */ getByIds: (ids: string[]) => Promise<Image[]>; }