Skip to content

Commit 336d863

Browse files
committed
fix bad class naming
1 parent af8d02c commit 336d863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/workflows/build/events-and-parameters.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ When you pass your `YourEventType` to `WorkflowEvent` as a type parameter, the `
8686
// Import the Workflow definition
8787
import { WorkflowEntrypoint, WorkflowStep, WorkflowEvent} from 'cloudflare:workers';
8888

89-
export class MyWorkflow implements Workflow {
89+
export class MyWorkflow extends WorkflowEntrypoint {
9090
// Pass your type as a type parameter to WorkflowEvent
9191
// The 'payload' property will have the type of your parameter.
9292
async run(event: WorkflowEvent<YourEventType>, step: WorkflowStep) {

0 commit comments

Comments
 (0)