🐛 BUG: contradicting docs re workflows events #19181
Labels
bug
Something isn't working
product:workflows
Workflows: https://developers.cloudflare.com/workflows/
Which Cloudflare product(s) does this pertain to?
Other
What version(s) of the tool(s) are you using?
3.97.0 wrangler
What version of Node are you using?
20.18.0
What operating system and version are you using?
Mac sonoma 14.6.1
Describe the Bug
The docs show 2 contradicting ways to access workflow events payload.
Under Rules For Workflows, there's an example showing that the event payload can be accessed directly using
event.data
orevent.user
- both properties are defined in MyEvent interface.Under Events and Parameters, it says that event properties are accessible via
event.payload
. E.g.event.payload.userEmail
The only difference between the 2, is that the second one is TypeScript while the first one is Javascript. But I don't believe that it should really make any difference.
2 more things:
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response
The text was updated successfully, but these errors were encountered: