@putdotio/api-client
Version:
JavaScript SDK for interacting with the put.io API.
13 lines (8 loc) • 303 B
text/typescript
import EventEmitter from 'event-emitter'
export { EventListener } from 'event-emitter'
export const EVENTS = {
ERROR: 'ERROR',
CLIENT_IP_CHANGED: 'CLIENT_IP_CHANGED',
} as const
export type PutioAPIClientEventTypes = typeof EVENTS[keyof typeof EVENTS]
export const eventEmitter = EventEmitter()