Skip to content

Commit 9454851

Browse files
fix(dts): update promise-based apis
1 parent 358a086 commit 9454851

File tree

8 files changed

+32
-32
lines changed

8 files changed

+32
-32
lines changed

dist/amd/aurelia-framework.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,19 @@ declare module 'aurelia-framework' {
9797
* Loads plugins, then resources, and then starts the Aurelia instance.
9898
*
9999
* @method start
100-
* @return {Aurelia} Returns the started Aurelia instance.
100+
* @return {Promise<Aurelia>} Returns the started Aurelia instance.
101101
*/
102-
start(): any;
102+
start(): Promise<Aurelia>;
103103

104104
/**
105105
* Instantiates the root view-model and view and add them to the DOM.
106106
*
107107
* @method withSingleton
108108
* @param {Object} root The root view-model to load upon bootstrap.
109109
* @param {string|Object} applicationHost The DOM object that Aurelia will attach to.
110-
* @return {Aurelia} Returns the current Aurelia instance.
110+
* @return {Promise<Aurelia>} Returns the current Aurelia instance.
111111
*/
112-
setRoot(root?: string, applicationHost?: any): any;
112+
setRoot(root?: string, applicationHost?: any): Promise<Aurelia>;
113113
}
114114

115115
/**

dist/commonjs/aurelia-framework.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,19 @@ declare module 'aurelia-framework' {
9797
* Loads plugins, then resources, and then starts the Aurelia instance.
9898
*
9999
* @method start
100-
* @return {Aurelia} Returns the started Aurelia instance.
100+
* @return {Promise<Aurelia>} Returns the started Aurelia instance.
101101
*/
102-
start(): any;
102+
start(): Promise<Aurelia>;
103103

104104
/**
105105
* Instantiates the root view-model and view and add them to the DOM.
106106
*
107107
* @method withSingleton
108108
* @param {Object} root The root view-model to load upon bootstrap.
109109
* @param {string|Object} applicationHost The DOM object that Aurelia will attach to.
110-
* @return {Aurelia} Returns the current Aurelia instance.
110+
* @return {Promise<Aurelia>} Returns the current Aurelia instance.
111111
*/
112-
setRoot(root?: string, applicationHost?: any): any;
112+
setRoot(root?: string, applicationHost?: any): Promise<Aurelia>;
113113
}
114114

115115
/**

dist/es6/aurelia-framework.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,19 @@ declare module 'aurelia-framework' {
9797
* Loads plugins, then resources, and then starts the Aurelia instance.
9898
*
9999
* @method start
100-
* @return {Aurelia} Returns the started Aurelia instance.
100+
* @return {Promise<Aurelia>} Returns the started Aurelia instance.
101101
*/
102-
start(): any;
102+
start(): Promise<Aurelia>;
103103

104104
/**
105105
* Instantiates the root view-model and view and add them to the DOM.
106106
*
107107
* @method withSingleton
108108
* @param {Object} root The root view-model to load upon bootstrap.
109109
* @param {string|Object} applicationHost The DOM object that Aurelia will attach to.
110-
* @return {Aurelia} Returns the current Aurelia instance.
110+
* @return {Promise<Aurelia>} Returns the current Aurelia instance.
111111
*/
112-
setRoot(root?: string, applicationHost?: any): any;
112+
setRoot(root?: string, applicationHost?: any): Promise<Aurelia>;
113113
}
114114

115115
/**

dist/es6/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ export class Aurelia {
239239
* Loads plugins, then resources, and then starts the Aurelia instance.
240240
*
241241
* @method start
242-
* @return {Aurelia} Returns the started Aurelia instance.
242+
* @return {Promise<Aurelia>} Returns the started Aurelia instance.
243243
*/
244-
start(){
244+
start():Promise<Aurelia>{
245245
if(this.started){
246246
return Promise.resolve(this);
247247
}
@@ -277,9 +277,9 @@ export class Aurelia {
277277
* @method withSingleton
278278
* @param {Object} root The root view-model to load upon bootstrap.
279279
* @param {string|Object} applicationHost The DOM object that Aurelia will attach to.
280-
* @return {Aurelia} Returns the current Aurelia instance.
280+
* @return {Promise<Aurelia>} Returns the current Aurelia instance.
281281
*/
282-
setRoot(root:string='app', applicationHost=null){
282+
setRoot(root:string='app', applicationHost=null):Promise<Aurelia>{
283283
var compositionEngine, instruction = {};
284284

285285
applicationHost = applicationHost || this.host;

dist/index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,19 @@ declare module 'aurelia-framework' {
9797
* Loads plugins, then resources, and then starts the Aurelia instance.
9898
*
9999
* @method start
100-
* @return {Aurelia} Returns the started Aurelia instance.
100+
* @return {Promise<Aurelia>} Returns the started Aurelia instance.
101101
*/
102-
start(): any;
102+
start(): Promise<Aurelia>;
103103

104104
/**
105105
* Instantiates the root view-model and view and add them to the DOM.
106106
*
107107
* @method withSingleton
108108
* @param {Object} root The root view-model to load upon bootstrap.
109109
* @param {string|Object} applicationHost The DOM object that Aurelia will attach to.
110-
* @return {Aurelia} Returns the current Aurelia instance.
110+
* @return {Promise<Aurelia>} Returns the current Aurelia instance.
111111
*/
112-
setRoot(root?: string, applicationHost?: any): any;
112+
setRoot(root?: string, applicationHost?: any): Promise<Aurelia>;
113113
}
114114

115115
/**

dist/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ export class Aurelia {
239239
* Loads plugins, then resources, and then starts the Aurelia instance.
240240
*
241241
* @method start
242-
* @return {Aurelia} Returns the started Aurelia instance.
242+
* @return {Promise<Aurelia>} Returns the started Aurelia instance.
243243
*/
244-
start(){
244+
start():Promise<Aurelia>{
245245
if(this.started){
246246
return Promise.resolve(this);
247247
}
@@ -277,9 +277,9 @@ export class Aurelia {
277277
* @method withSingleton
278278
* @param {Object} root The root view-model to load upon bootstrap.
279279
* @param {string|Object} applicationHost The DOM object that Aurelia will attach to.
280-
* @return {Aurelia} Returns the current Aurelia instance.
280+
* @return {Promise<Aurelia>} Returns the current Aurelia instance.
281281
*/
282-
setRoot(root:string='app', applicationHost=null){
282+
setRoot(root:string='app', applicationHost=null):Promise<Aurelia>{
283283
var compositionEngine, instruction = {};
284284

285285
applicationHost = applicationHost || this.host;

dist/system/aurelia-framework.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,19 @@ declare module 'aurelia-framework' {
9797
* Loads plugins, then resources, and then starts the Aurelia instance.
9898
*
9999
* @method start
100-
* @return {Aurelia} Returns the started Aurelia instance.
100+
* @return {Promise<Aurelia>} Returns the started Aurelia instance.
101101
*/
102-
start(): any;
102+
start(): Promise<Aurelia>;
103103

104104
/**
105105
* Instantiates the root view-model and view and add them to the DOM.
106106
*
107107
* @method withSingleton
108108
* @param {Object} root The root view-model to load upon bootstrap.
109109
* @param {string|Object} applicationHost The DOM object that Aurelia will attach to.
110-
* @return {Aurelia} Returns the current Aurelia instance.
110+
* @return {Promise<Aurelia>} Returns the current Aurelia instance.
111111
*/
112-
setRoot(root?: string, applicationHost?: any): any;
112+
setRoot(root?: string, applicationHost?: any): Promise<Aurelia>;
113113
}
114114

115115
/**

src/aurelia.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ export class Aurelia {
170170
* Loads plugins, then resources, and then starts the Aurelia instance.
171171
*
172172
* @method start
173-
* @return {Aurelia} Returns the started Aurelia instance.
173+
* @return {Promise<Aurelia>} Returns the started Aurelia instance.
174174
*/
175-
start(){
175+
start():Promise<Aurelia>{
176176
if(this.started){
177177
return Promise.resolve(this);
178178
}
@@ -208,9 +208,9 @@ export class Aurelia {
208208
* @method withSingleton
209209
* @param {Object} root The root view-model to load upon bootstrap.
210210
* @param {string|Object} applicationHost The DOM object that Aurelia will attach to.
211-
* @return {Aurelia} Returns the current Aurelia instance.
211+
* @return {Promise<Aurelia>} Returns the current Aurelia instance.
212212
*/
213-
setRoot(root:string='app', applicationHost=null){
213+
setRoot(root:string='app', applicationHost=null):Promise<Aurelia>{
214214
var compositionEngine, instruction = {};
215215

216216
applicationHost = applicationHost || this.host;

0 commit comments

Comments
 (0)