Home Reference Source Test Repository

lib/TypeDefinition.js

/**
 * @typedef {Object} ElectroPhoneProperties
 * @property {boolean} spectrum - set if there is a spectrum attached.
 * @property {function(data: Array): undefined} updateSpectrum - on receive data callback.
 * @property {function(): undefined} resetSpectrum - on stop data callback.
 */

/**
 * @typedef {Object} AudioContext
 * @see https://developer.mozilla.org/it/docs/Web/API/AudioContext
 */

/**
 * @typedef {Object} ModuleProperties
 * @property {Object} props - key value list of each module property.
 * @property {String} type - the type of the module.
 */