Module: api/types

January 9, 2021 · View on GitHub

andesitejs / Exports / api/types

Module: api/types

Table of contents

Interfaces

Type aliases

Type aliases

Dictionary

Ƭ Dictionary<T>: Record<string, T>

Type parameters:

NameDefault
Tany

Defined in: api/types.ts:766


Event

Ƭ Event: TrackStartEvent | TrackEndEvent | TrackExceptionEvent | TrackStuckEvent | WebSocketClosedEvent

Defined in: api/types.ts:770


EventType

Ƭ EventType: TrackStartEvent | TrackEndEvent | TrackExceptionEvent | TrackStuckEvent | WebSocketClosedEvent

Defined in: api/types.ts:774


LoadTypes

Ƭ LoadTypes: TRACK_LOADED | SEARCH_RESULT | PLAYLIST_LOADED | NO_MATCHES | LOAD_FAILED

  • TRACK_LOADED - tracks will only have one track, playlistInfo, cause and severity will be null.
  • SEARCH_RESULT - cause and severity will be null.
  • PLAYLIST_LOADED - cause and severity will be null.
  • NO_MATCHES - all other fields will be null.
  • LOAD_FAILED - tracks and playlistInfo will be null.

Defined in: api/types.ts:789


PlayerTransport

Ƭ PlayerTransport: websocket | rest

"websocket" - controls the player via websocket "rest" - controls the player through the rest api.

Defined in: api/types.ts:764


SendMethod

Ƭ SendMethod: (id: string, payload: any) => any

Defined in: api/types.ts:768


TrackEndReason

Ƭ TrackEndReason: FINISHED | LOAD_FAILED | STOPPED | REPLACED | CLEANUP

Defined in: api/types.ts:772