Merge pull request #28240 from awanlin/docs/remove-writing-actions-new

[Docs] Removed `new` from `addActions` call
This commit is contained in:
Ben Lambert
2025-01-07 15:58:37 +01:00
committed by GitHub
@@ -220,7 +220,7 @@ const scaffolderModuleCustomExtensions = createBackendModule({
async init({ scaffolder /* ..., other dependencies */ }) {
// Here you have the opportunity to interact with the extension
// point before the plugin itself gets instantiated
scaffolder.addActions(new createNewFileAction()); // just an example
scaffolder.addActions(createNewFileAction()); // just an example
},
});
},