src/EventStore.js
function validateMessageBus(messageBus) {
	if (typeof messageBus !== 'object' || !messageBus)
		throw new TypeError('messageBus argument must be an Object');
	if (typeof messageBus.on !== 'function')
		throw new TypeError('messageBus.on argument must be a Function');
	if (typeof messageBus.publish !== 'function')
		throw new TypeError('messageBus.publish argument must be a Function');
}
function validateMessageBus(messageBus) {
	if (typeof messageBus !== 'object' || !messageBus)
		throw new TypeError('messageBus argument must be an Object');
	if (typeof messageBus.on !== 'function')
		throw new TypeError('messageBus.on argument must be a Function');
	if (typeof messageBus.publish !== 'function')
		throw new TypeError('messageBus.publish argument must be a Function');
}
function validateMessageBus ( messageBus ) { if ( typeof messageBus !== 'object' || ! messageBus ) throw new TypeError ( 'messageBus argument must be an Object' ) ; if ( typeof messageBus . on !== 'function' ) throw new TypeError ( 'messageBus.on argument must be a Function' ) ; if ( typeof messageBus . publish !== 'function' ) throw new TypeError ( 'messageBus.publish argument must be a Function' ) ; }
Ensure messageBus matches the expected format
@param {IMessageBus} messageBus
Ensure messageBus matches the expected format