We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af8d02c commit 336d863Copy full SHA for 336d863
src/content/docs/workflows/build/events-and-parameters.mdx
@@ -86,7 +86,7 @@ When you pass your `YourEventType` to `WorkflowEvent` as a type parameter, the `
86
// Import the Workflow definition
87
import { WorkflowEntrypoint, WorkflowStep, WorkflowEvent} from 'cloudflare:workers';
88
89
-export class MyWorkflow implements Workflow {
+export class MyWorkflow extends WorkflowEntrypoint {
90
// Pass your type as a type parameter to WorkflowEvent
91
// The 'payload' property will have the type of your parameter.
92
async run(event: WorkflowEvent<YourEventType>, step: WorkflowStep) {
0 commit comments