Skip to content

Commit b07c481

Browse files
author
mirek kulha
committed
fix(framework-configuration): parameter config in feature and plugin
method is optional
1 parent c91ea2b commit b07c481

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/framework-configuration.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class FrameworkConfiguration {
147147
* @param {config} config The configuration for the specified plugin.
148148
* @return {FrameworkConfiguration} Returns the current FrameworkConfiguration instance.
149149
*/
150-
feature(plugin:string, config:any):FrameworkConfiguration{
150+
feature(plugin:string, config?:any):FrameworkConfiguration{
151151
plugin = plugin.endsWith('.js') || plugin.endsWith('.ts') ? plugin.substring(0, plugin.length - 3) : plugin;
152152
return this.plugin({ moduleId: plugin + '/index', resourcesRelativeTo: plugin, config: config || {} });
153153
}
@@ -201,7 +201,7 @@ export class FrameworkConfiguration {
201201
* @param {config} config The configuration for the specified plugin.
202202
* @return {FrameworkConfiguration} Returns the current FrameworkConfiguration instance.
203203
*/
204-
plugin(plugin:string, config:any):FrameworkConfiguration{
204+
plugin(plugin:string, config?:any):FrameworkConfiguration{
205205
assertProcessed(this);
206206

207207
if(typeof(plugin) === 'string'){

0 commit comments

Comments
 (0)