-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
I think that it would be better to use object as argument.
instead of
generate.prototype.createComponent = function(
module,
componentName,
answers,
answersInner,
onlyFile,
cb
) {}
better is
generate.prototype.createComponent = function({
module,
componentName,
answers,
answersInner = null,
onlyFile = false,
cb
}) {}
And later use that:
generate.createComponent({
module: modulename,
componentName: name,
cb: function(status) {}
});
Metadata
Metadata
Assignees
Labels
No labels