(...args: any[])
| 80 | } |
| 81 | |
| 82 | dispatch(...args: any[]) { |
| 83 | const { identifier, param } = decompose(...args); |
| 84 | |
| 85 | if (alias.get(identifier) != undefined) { |
| 86 | for (const id of alias.get(identifier) as string[]) { |
| 87 | this.dispatch(id); |
| 88 | } |
| 89 | return; |
| 90 | } |
| 91 | const action = this.getAction(identifier); |
| 92 | bus.at("callback", { |
| 93 | identifier, |
| 94 | param, |
| 95 | type: action.actionType, |
| 96 | isMain, |
| 97 | }); |
| 98 | } |
| 99 | |
| 100 | getAction(identifier: Identifier): ActionView { |
| 101 | if (!this.actions.has(identifier)) { |
no test coverage detected