Action calling an action: "implicit any" error?
Hey all, @erquhart I feel like you'll know this, haha.
I have the simplest action calling another action via
ctx.runAction
. It's throwing the classic "implicitly has type 'any' because..." error, but I'd really like to understand why.
(For the record, I have "solved" this by using a helper function, per best practice, instead of an action calling an action. Regardless, I need to understand why this isn't working.)
- I can also annotate it with as { message: ... }
, but why would I need to do that when the return type is static and very simple?
- Adding returns
argument doesn't solve it either E.g.
Here's the whole setup:
Error in Terminal (note VS Code doesn't show any issues):

0 Replies