Commit Detail
Commit 01f2b90
feat: add Workflows to ValidationErrorReporter In order to have proper validation for Workflows I think we will need a similar setup as DOs: ValidationErrorReporter now has a `addWorkflowClass` that behaves similarily as `addActorClass`. (This will need a internal PR in order to work properly). This will be useful in cases that a user exports a class but doesn't extend from `WorkflowEntrypoint` (meaning they won't get `ctx` and `env` and see weird errors). feat: report exported handlers for the workflow class to check for `run` handler We also want to validate if the exported workflows has the `run` handler in the provided class entrypoint. I use the same approach as the exported stateless classes: by introspecting the prototypes of the workflow class.