File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ export class FrameworkConfiguration {
147
147
* @param {config } config The configuration for the specified plugin.
148
148
* @return {FrameworkConfiguration } Returns the current FrameworkConfiguration instance.
149
149
*/
150
- feature ( plugin :string , config :any ) :FrameworkConfiguration {
150
+ feature ( plugin :string , config ? :any ) :FrameworkConfiguration {
151
151
plugin = plugin . endsWith ( '.js' ) || plugin . endsWith ( '.ts' ) ? plugin . substring ( 0 , plugin . length - 3 ) : plugin ;
152
152
return this . plugin ( { moduleId : plugin + '/index' , resourcesRelativeTo : plugin , config : config || { } } ) ;
153
153
}
@@ -201,7 +201,7 @@ export class FrameworkConfiguration {
201
201
* @param {config } config The configuration for the specified plugin.
202
202
* @return {FrameworkConfiguration } Returns the current FrameworkConfiguration instance.
203
203
*/
204
- plugin ( plugin :string , config :any ) :FrameworkConfiguration {
204
+ plugin ( plugin :string , config ? :any ) :FrameworkConfiguration {
205
205
assertProcessed ( this ) ;
206
206
207
207
if ( typeof ( plugin ) === 'string' ) {
You can’t perform that action at this time.
0 commit comments