(a: (typeof MESSAGE_ACTIONS)[number], c: MessageActionsState)
| 186 | } |
| 187 | })] as const; |
| 188 | function isApplicable(a: (typeof MESSAGE_ACTIONS)[number], c: MessageActionsState): boolean { |
| 189 | if (!(a.types as readonly string[]).includes(c.msgType)) return false; |
| 190 | return !a.applies || a.applies(c); |
| 191 | } |
| 192 | export type MessageActionsState = { |
| 193 | uuid: string; |
| 194 | msgType: NavigableType; |
no outgoing calls
no test coverage detected