Hey! Is it possible to create function preconditions for both interactions and messages under the same exported decorator? Or do I have create different exports for each of them?
Alternatively, would I be able to create such function precondition that accepts both messages and interactions?
Solution
Sure, just make sure your function takes an argument that can be both types and determine which it is by using an instanceof check