Skip to content

Commit 6d42d97

Browse files
Various docs updates
1 parent cca7f19 commit 6d42d97

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

v3/src/sound/BaseSound.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ var BaseSound = new Class({
144144
* Object containing markers definitions.
145145
*
146146
* @readonly
147-
* @property {{}} markers
147+
* @property {Object.<string, ISoundMarker>} markers
148148
*/
149149
this.markers = {};
150150
/**
@@ -229,7 +229,7 @@ var BaseSound = new Class({
229229
*
230230
* @method Phaser.Sound.BaseSound#removeMarker
231231
* @param {string} markerName - The name of the marker to remove.
232-
* @returns {ISoundMarker|null} Removed marker object or 'null' if there was no marker with provided name.
232+
* @returns {ISoundMarker | null} Removed marker object or 'null' if there was no marker with provided name.
233233
*/
234234
removeMarker: function (markerName) {
235235
var marker = this.markers[markerName];
@@ -248,7 +248,7 @@ var BaseSound = new Class({
248248
* @method Phaser.Sound.BaseSound#play
249249
* @param {string} [markerName=''] - If you want to play a marker then provide the marker name here, otherwise omit it to play the full sound.
250250
* @param {ISoundConfig} [config] - Optional sound config object to be applied to this marker or entire sound if no marker name is provided. It gets memorized for future plays of current section of the sound.
251-
* @returns {ISound} This sound instance.
251+
* @returns {ISound | null} This sound instance or 'null' if an error occurred.
252252
*/
253253
play: function (markerName, config) {
254254
if (markerName === void 0) { markerName = ''; }

0 commit comments

Comments
 (0)