mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-04 04:44:08 +01:00 
			
		
		
		
	chore: Add JSDoc to apply in sequenceDB
Co-authored-by: Alois Klink <alois@aloisklink.com>
This commit is contained in:
		@@ -452,6 +452,19 @@ export const getActorProperty = function (actor, key) {
 | 
				
			|||||||
  return undefined;
 | 
					  return undefined;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * @typedef {object} AddMessageParams A message from one actor to another.
 | 
				
			||||||
 | 
					 * @property {string} from - The id of the actor sending the message.
 | 
				
			||||||
 | 
					 * @property {string} to - The id of the actor receiving the message.
 | 
				
			||||||
 | 
					 * @property {string} msg - The message text.
 | 
				
			||||||
 | 
					 * @property {number} signalType - The type of signal.
 | 
				
			||||||
 | 
					 * @property {"addMessage"} type - Set to `"addMessage"` if this is an `AddMessageParams`.
 | 
				
			||||||
 | 
					 * @property {boolean} [activate] - If `true`, this signal starts an activation.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * @param {object | object[] | AddMessageParams} param - Object of parameters.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
export const apply = function (param) {
 | 
					export const apply = function (param) {
 | 
				
			||||||
  if (Array.isArray(param)) {
 | 
					  if (Array.isArray(param)) {
 | 
				
			||||||
    param.forEach(function (item) {
 | 
					    param.forEach(function (item) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user