Skip to content

Commit c52145b

Browse files
committed
Remove unnecessary type casting in registerStepDefinition method
1 parent 4aa66fb commit c52145b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/platform/plugins/shared/workflows_extensions/public

src/platform/plugins/shared/workflows_extensions/public/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class WorkflowsExtensionsPublicPlugin
4242
return {
4343
registerStepDefinition: (metadata) => {
4444
// Casting here to prevent type errors with a narrow type definition and to avoid forcing consumers to cast manually
45-
this.stepRegistry.register(metadata as PublicStepDefinition);
45+
this.stepRegistry.register(metadata);
4646
},
4747
};
4848
}

0 commit comments

Comments
 (0)