@@ -80,9 +80,9 @@ export class FrameworkConfiguration {
80
80
* @method instance
81
81
* @param {Class } type The object type of the dependency that the framework will inject.
82
82
* @param {Object } instance The existing instance of the dependency that the framework will inject.
83
- * @return {Plugins } Returns the current Aurelia instance.
83
+ * @return {FrameworkConfiguration } Returns the current FrameworkConfiguration instance.
84
84
*/
85
- instance ( type :any , instance :any ) :Plugins {
85
+ instance ( type :any , instance :any ) :FrameworkConfiguration {
86
86
this . container . registerInstance ( type , instance ) ;
87
87
return this ;
88
88
}
@@ -93,9 +93,9 @@ export class FrameworkConfiguration {
93
93
* @method singleton
94
94
* @param {Class } type The object type of the dependency that the framework will inject.
95
95
* @param {Object } implementation The constructor function of the dependency that the framework will inject.
96
- * @return {Plugins } Returns the current Aurelia instance.
96
+ * @return {FrameworkConfiguration } Returns the current FrameworkConfiguration instance.
97
97
*/
98
- singleton ( type :any , implementation ?:Function ) :Plugins {
98
+ singleton ( type :any , implementation ?:Function ) :FrameworkConfiguration {
99
99
this . container . registerSingleton ( type , implementation ) ;
100
100
return this ;
101
101
}
@@ -106,9 +106,9 @@ export class FrameworkConfiguration {
106
106
* @method transient
107
107
* @param {Class } type The object type of the dependency that the framework will inject.
108
108
* @param {Object } implementation The constructor function of the dependency that the framework will inject.
109
- * @return {Plugins } Returns the current Aurelia instance.
109
+ * @return {FrameworkConfiguration } Returns the current FrameworkConfiguration instance.
110
110
*/
111
- transient ( type :any , implementation ? :Function ) :Plugins {
111
+ transient ( type :any , implementation ? :Function ) :FrameworkConfiguration {
112
112
this . container . registerTransient ( type , implementation ) ;
113
113
return this ;
114
114
}
@@ -118,9 +118,9 @@ export class FrameworkConfiguration {
118
118
*
119
119
* @method addPreStartTask
120
120
* @param {Function } task The function to run before start.
121
- * @return {Plugins } Returns the current Plugins instance.
121
+ * @return {FrameworkConfiguration } Returns the current FrameworkConfiguration instance.
122
122
*/
123
- preTask ( task :Function ) :Plugins {
123
+ preTask ( task :Function ) :FrameworkConfiguration {
124
124
assertProcessed ( this ) ;
125
125
this . preTasks . push ( task ) ;
126
126
return this ;
@@ -131,9 +131,9 @@ export class FrameworkConfiguration {
131
131
*
132
132
* @method addPostStartTask
133
133
* @param {Function } task The function to run after start.
134
- * @return {Plugins } Returns the current Plugins instance.
134
+ * @return {FrameworkConfiguration } Returns the current FrameworkConfiguration instance.
135
135
*/
136
- postTask ( task :Function ) :Plugins {
136
+ postTask ( task :Function ) :FrameworkConfiguration {
137
137
assertProcessed ( this ) ;
138
138
this . postTasks . push ( task ) ;
139
139
return this ;
@@ -145,9 +145,9 @@ export class FrameworkConfiguration {
145
145
* @method feature
146
146
* @param {string } plugin The folder for the internal plugin to configure (expects an index.js in that folder).
147
147
* @param {config } config The configuration for the specified plugin.
148
- * @return {Plugins } Returns the current Plugins instance.
148
+ * @return {FrameworkConfiguration } Returns the current FrameworkConfiguration instance.
149
149
*/
150
- feature ( plugin :string , config :any ) :Plugins {
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
}
@@ -157,9 +157,9 @@ export class FrameworkConfiguration {
157
157
*
158
158
* @method globalResources
159
159
* @param {Object|Array } resources The relative module id to the resource. (Relative to the plugin's installer.)
160
- * @return {Plugins } Returns the current Plugins instance.
160
+ * @return {FrameworkConfiguration } Returns the current FrameworkConfiguration instance.
161
161
*/
162
- globalResources ( resources :string | string [ ] ) :Plugins {
162
+ globalResources ( resources :string | string [ ] ) :FrameworkConfiguration {
163
163
assertProcessed ( this ) ;
164
164
165
165
let toAdd = Array . isArray ( resources ) ? resources : arguments ,
@@ -185,9 +185,9 @@ export class FrameworkConfiguration {
185
185
* @method globalName
186
186
* @param {String } resourcePath The path to the resource.
187
187
* @param {String } newName The new name.
188
- * @return {Plugins } Returns the current Plugins instance.
188
+ * @return {FrameworkConfiguration } Returns the current FrameworkConfiguration instance.
189
189
*/
190
- globalName ( resourcePath :string , newName :string ) :Plugins {
190
+ globalName ( resourcePath :string , newName :string ) :FrameworkConfiguration {
191
191
assertProcessed ( this ) ;
192
192
this . resourcesToLoad [ resourcePath ] = newName ;
193
193
return this ;
@@ -199,9 +199,9 @@ export class FrameworkConfiguration {
199
199
* @method plugin
200
200
* @param {string } plugin The ID of the 3rd party plugin to configure.
201
201
* @param {config } config The configuration for the specified plugin.
202
- * @return {Plugins } Returns the current Plugins instance.
202
+ * @return {FrameworkConfiguration } Returns the current FrameworkConfiguration instance.
203
203
*/
204
- plugin ( plugin :string , config :any ) :Plugins {
204
+ plugin ( plugin :string , config :any ) :FrameworkConfiguration {
205
205
assertProcessed ( this ) ;
206
206
207
207
if ( typeof ( plugin ) === 'string' ) {
@@ -235,59 +235,59 @@ export class FrameworkConfiguration {
235
235
* Plugs in the default binding language from aurelia-templating-binding.
236
236
*
237
237
* @method defaultBindingLanguage
238
- * @return {Plugins } Returns the current Plugins instance.
238
+ * @return {FrameworkConfiguration } Returns the current FrameworkConfiguration instance.
239
239
*/
240
- defaultBindingLanguage ( ) :Plugins {
240
+ defaultBindingLanguage ( ) :FrameworkConfiguration {
241
241
return this . _addNormalizedPlugin ( 'aurelia-templating-binding' ) ;
242
242
} ;
243
243
244
244
/**
245
245
* Plugs in the router from aurelia-templating-router.
246
246
*
247
247
* @method router
248
- * @return {Plugins } Returns the current Plugins instance.
248
+ * @return {FrameworkConfiguration } Returns the current FrameworkConfiguration instance.
249
249
*/
250
- router ( ) :Plugins {
250
+ router ( ) :FrameworkConfiguration {
251
251
return this . _addNormalizedPlugin ( 'aurelia-templating-router' ) ;
252
252
}
253
253
254
254
/**
255
255
* Plugs in the default history implementation from aurelia-history-browser.
256
256
*
257
257
* @method history
258
- * @return {Plugins } Returns the current Plugins instance.
258
+ * @return {FrameworkConfiguration } Returns the current FrameworkConfiguration instance.
259
259
*/
260
- history ( ) :Plugins {
260
+ history ( ) :FrameworkConfiguration {
261
261
return this . _addNormalizedPlugin ( 'aurelia-history-browser' ) ;
262
262
}
263
263
264
264
/**
265
265
* Plugs in the default templating resources (if, repeat, show, compose, etc.) from aurelia-templating-resources.
266
266
*
267
267
* @method defaultResources
268
- * @return {Plugins } Returns the current Plugins instance.
268
+ * @return {FrameworkConfiguration } Returns the current FrameworkConfiguration instance.
269
269
*/
270
- defaultResources ( ) :Plugins {
270
+ defaultResources ( ) :FrameworkConfiguration {
271
271
return this . _addNormalizedPlugin ( 'aurelia-templating-resources' ) ;
272
272
}
273
273
274
274
/**
275
275
* Plugs in the event aggregator from aurelia-event-aggregator.
276
276
*
277
277
* @method eventAggregator
278
- * @return {Plugins } Returns the current Plugins instance.
278
+ * @return {FrameworkConfiguration } Returns the current FrameworkConfiguration instance.
279
279
*/
280
- eventAggregator ( ) :Plugins {
280
+ eventAggregator ( ) :FrameworkConfiguration {
281
281
return this . _addNormalizedPlugin ( 'aurelia-event-aggregator' ) ;
282
282
}
283
283
284
284
/**
285
285
* Sets up the Aurelia configuration. This is equivalent to calling `.defaultBindingLanguage().defaultResources().history().router().eventAggregator();`
286
286
*
287
287
* @method standardConfiguration
288
- * @return {Plugins } Returns the current Plugins instance.
288
+ * @return {FrameworkConfiguration } Returns the current FrameworkConfiguration instance.
289
289
*/
290
- standardConfiguration ( ) :Plugins {
290
+ standardConfiguration ( ) :FrameworkConfiguration {
291
291
return this . aurelia . use
292
292
. defaultBindingLanguage ( )
293
293
. defaultResources ( )
@@ -300,9 +300,9 @@ export class FrameworkConfiguration {
300
300
* Plugs in the ConsoleAppender and sets the log level to debug.
301
301
*
302
302
* @method developmentLogging
303
- * @return {Plugins } Returns the current Plugins instance.
303
+ * @return {FrameworkConfiguration } Returns the current FrameworkConfiguration instance.
304
304
*/
305
- developmentLogging ( ) :Plugins {
305
+ developmentLogging ( ) :FrameworkConfiguration {
306
306
this . preTask ( ( ) => {
307
307
return System . normalize ( 'aurelia-logging-console' , this . bootstrapperName ) . then ( name => {
308
308
return this . aurelia . loader . loadModule ( name ) . then ( m => {
0 commit comments