Skip to content

Commit

Permalink
Revert to using Mopidy for top-most namespace (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
whomwah authored May 6, 2021
1 parent 6ca295b commit f44adc6
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/mopidy.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for Mopidy.js v1.1.0, Mopidy v3.0.2 WebSocket API
// Type definitions for Mopidy.js v1.2.0, Mopidy v3.0.2 WebSocket API

export = Mopidy;

Expand All @@ -13,7 +13,7 @@ declare class Mopidy {
*
* This library is the foundation of most Mopidy web clients.
*/
constructor(options: mopidy.Options);
constructor(options: Mopidy.Options);
/**
* Explicit connect function for when autoConnect:false is passed to
* constructor.
Expand All @@ -27,15 +27,15 @@ declare class Mopidy {

// ----------------- EVENT SUBSCRIPTION -----------------

on<K extends keyof mopidy.StrictEvents>(
on<K extends keyof Mopidy.StrictEvents>(
name: K,
listener: mopidy.StrictEvents[K]
listener: Mopidy.StrictEvents[K]
): this;

off(): void;
off<K extends keyof mopidy.StrictEvents>(
off<K extends keyof Mopidy.StrictEvents>(
name: K,
listener: mopidy.StrictEvents[K]
listener: Mopidy.StrictEvents[K]
): this;

// ----------------- CORE API -----------------
Expand All @@ -44,32 +44,32 @@ declare class Mopidy {
* Manages everything related to the list of tracks we will play. See
* TracklistController. Undefined before Mopidy connects.
*/
tracklist?: mopidy.core.TracklistController;
tracklist?: Mopidy.core.TracklistController;
/**
* Manages playback state and the current playing track. See
* PlaybackController. Undefined before Mopidy connects.
*/
playback?: mopidy.core.PlaybackController;
playback?: Mopidy.core.PlaybackController;
/**
* Manages the music library, e.g. searching and browsing for music. See
* LibraryController. Undefined before Mopidy connects.
*/
library?: mopidy.core.LibraryController;
library?: Mopidy.core.LibraryController;
/**
* Manages stored playlists. See PlaylistsController. Undefined before
* Mopidy connects.
*/
playlists?: mopidy.core.PlaylistsController;
playlists?: Mopidy.core.PlaylistsController;
/**
* Manages volume and muting. See MixerController. Undefined before Mopidy
* connects.
*/
mixer?: mopidy.core.MixerController;
mixer?: Mopidy.core.MixerController;
/**
* Keeps record of what tracks have been played. See HistoryController.
* Undefined before Mopidy connects.
*/
history?: mopidy.core.HistoryController;
history?: Mopidy.core.HistoryController;

/**
* Get list of URI schemes we can handle
Expand All @@ -81,7 +81,7 @@ declare class Mopidy {
getVersion(): Promise<string>;
}

declare namespace mopidy {
declare namespace Mopidy {
type ValueOf<T> = T[keyof T];
type URI = string;

Expand Down

0 comments on commit f44adc6

Please sign in to comment.