mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 04:34:12 +01:00
Use [foo] instead of foo[] consistently in source doc type annotations.
This commit is contained in:
@@ -22,7 +22,7 @@ const Library = Module("library", {
|
||||
/**
|
||||
* Returns an array of all the artist names in the main library.
|
||||
*
|
||||
* @returns {string[]}
|
||||
* @returns {[string]}
|
||||
*/
|
||||
getArtists: function getArtists() this._toJSArray(this.MAIN_LIBRARY.getDistinctValuesForProperty(SBProperties.artistName)),
|
||||
|
||||
@@ -32,7 +32,7 @@ const Library = Module("library", {
|
||||
* library.
|
||||
*
|
||||
* @param {string} artist The artist's name.
|
||||
* @returns {string[]}
|
||||
* @returns {[string]}
|
||||
*/
|
||||
getAlbums: function getAlbums(artist) {
|
||||
let albums = this._toJSArray(this.MAIN_LIBRARY.getItemsByProperty(SBProperties.artistName, artist))
|
||||
@@ -46,7 +46,7 @@ const Library = Module("library", {
|
||||
*
|
||||
* @param {string} artist The artist's name.
|
||||
* @param {string} album The album's name.
|
||||
* @returns {string[]}
|
||||
* @returns {[string]}
|
||||
*/
|
||||
getTracks: function getTracks(artist, album) {
|
||||
let properties = services.MutablePropertyArray();
|
||||
|
||||
@@ -333,7 +333,7 @@ const Player = Module("player", {
|
||||
/**
|
||||
* Returns an array of all available playlists.
|
||||
*
|
||||
* @returns {sbIMediaList[]}
|
||||
* @returns {[sbIMediaList]}
|
||||
*/
|
||||
getPlaylists: function getPlaylists() {
|
||||
let mainLibrary = LibraryUtils.mainLibrary;
|
||||
@@ -367,7 +367,7 @@ const Player = Module("player", {
|
||||
/**
|
||||
* Returns an array of all available media pages.
|
||||
*
|
||||
* @returns {sbIMediaPageInfo[]}
|
||||
* @returns {[sbIMediaPageInfo]}
|
||||
*/
|
||||
getMediaPages: function getMediaPages() {
|
||||
let list = SBGetBrowser().currentMediaPage.mediaListView.mediaList;
|
||||
|
||||
Reference in New Issue
Block a user