From cd269b82b321fe56c040f8ba6960be42339cafd5 Mon Sep 17 00:00:00 2001 From: Eleanor Mao Date: Wed, 10 Apr 2024 16:36:52 +0800 Subject: [PATCH] ts --- src/transform.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/transform.ts b/src/transform.ts index 947b022..1266e28 100644 --- a/src/transform.ts +++ b/src/transform.ts @@ -80,14 +80,14 @@ function drawState(eventState: Map, state: State): string { return sb; } -function append(from, to, description) { +function append(from:any, to:any, description:any) { if (isNotBlank(description)) { description = ": " + description; } return `${from} ---> ${to}${description}\n`; } -function wrapCond(cond) { +function wrapCond(cond:any) { if (isNotBlank(cond)) { return "(" + cond + ")"; } else { @@ -95,7 +95,7 @@ function wrapCond(cond) { } } -function drawTransitionCondition(eventCondition, transition) { +function drawTransitionCondition(eventCondition:any, transition:any) { const list = []; if (eventCondition !== undefined && eventCondition !== null) { list.push(eventCondition); @@ -111,7 +111,7 @@ function drawTransitionCondition(eventCondition, transition) { return list.join(" && "); } -function drawExitCondition(eventCondition, exit) { +function drawExitCondition(eventCondition:any, exit:any) { const list = []; if (eventCondition !== undefined && eventCondition !== null) { list.push(eventCondition); @@ -122,7 +122,7 @@ function drawExitCondition(eventCondition, exit) { return list.join(" && "); } -function drawStateLine(eventState, state) { +function drawStateLine(eventState:any, state:any) { const handlers = state.eventHandlers; if (isEmpty(handlers)) { return;