UNPKG

@ticketto/protocol

Version:

Library that defines the interfaces of the ticketto protocol to be implemented on a client

13 lines (12 loc) 457 B
import type { EventId, TicketId, Timestamp } from "@ticketto/types"; /** * Access to storage for module attendances. */ export interface AttendancesStorage { /** * Returns the list of attendances associated to a ticket. * @param id The {@link EventId} bound to the queried ticket. * @param ticketId The {@link TicketId} associated to the queried ticket. */ attendances(id: EventId, ticketId: TicketId): Promise<Timestamp[]>; }