Fix boundMessage type

This commit is contained in:
Sidharth Vinod
2024-01-27 22:37:24 +05:30
parent 3b0c5c3e60
commit bc332e3124

View File

@@ -311,7 +311,7 @@ const actorFont = (cnf) => {
* @param msgModel - The model containing fields describing a message
* @returns `lineStartY` - The Y coordinate at which the message line starts
*/
async function boundMessage(_diagram, msgModel): number {
async function boundMessage(_diagram, msgModel): Promise<number> {
bounds.bumpVerticalPos(10);
const { startx, stopx, message } = msgModel;
const lines = common.splitBreaks(message).length;