Skip to content

Commit

Permalink
fix(dts): update promise-based apis
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jul 8, 2015
1 parent 358a086 commit 9454851
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 32 deletions.
8 changes: 4 additions & 4 deletions dist/amd/aurelia-framework.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,19 @@ declare module 'aurelia-framework' {
* Loads plugins, then resources, and then starts the Aurelia instance.
*
* @method start
* @return {Aurelia} Returns the started Aurelia instance.
* @return {Promise<Aurelia>} Returns the started Aurelia instance.
*/
start(): any;
start(): Promise<Aurelia>;

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

/**
Expand Down
8 changes: 4 additions & 4 deletions dist/commonjs/aurelia-framework.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,19 @@ declare module 'aurelia-framework' {
* Loads plugins, then resources, and then starts the Aurelia instance.
*
* @method start
* @return {Aurelia} Returns the started Aurelia instance.
* @return {Promise<Aurelia>} Returns the started Aurelia instance.
*/
start(): any;
start(): Promise<Aurelia>;

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

/**
Expand Down
8 changes: 4 additions & 4 deletions dist/es6/aurelia-framework.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,19 @@ declare module 'aurelia-framework' {
* Loads plugins, then resources, and then starts the Aurelia instance.
*
* @method start
* @return {Aurelia} Returns the started Aurelia instance.
* @return {Promise<Aurelia>} Returns the started Aurelia instance.
*/
start(): any;
start(): Promise<Aurelia>;

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

/**
Expand Down
8 changes: 4 additions & 4 deletions dist/es6/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,9 @@ export class Aurelia {
* Loads plugins, then resources, and then starts the Aurelia instance.
*
* @method start
* @return {Aurelia} Returns the started Aurelia instance.
* @return {Promise<Aurelia>} Returns the started Aurelia instance.
*/
start(){
start():Promise<Aurelia>{
if(this.started){
return Promise.resolve(this);
}
Expand Down Expand Up @@ -277,9 +277,9 @@ export class Aurelia {
* @method withSingleton
* @param {Object} root The root view-model to load upon bootstrap.
* @param {string|Object} applicationHost The DOM object that Aurelia will attach to.
* @return {Aurelia} Returns the current Aurelia instance.
* @return {Promise<Aurelia>} Returns the current Aurelia instance.
*/
setRoot(root:string='app', applicationHost=null){
setRoot(root:string='app', applicationHost=null):Promise<Aurelia>{
var compositionEngine, instruction = {};

applicationHost = applicationHost || this.host;
Expand Down
8 changes: 4 additions & 4 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,19 @@ declare module 'aurelia-framework' {
* Loads plugins, then resources, and then starts the Aurelia instance.
*
* @method start
* @return {Aurelia} Returns the started Aurelia instance.
* @return {Promise<Aurelia>} Returns the started Aurelia instance.
*/
start(): any;
start(): Promise<Aurelia>;

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

/**
Expand Down
8 changes: 4 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,9 @@ export class Aurelia {
* Loads plugins, then resources, and then starts the Aurelia instance.
*
* @method start
* @return {Aurelia} Returns the started Aurelia instance.
* @return {Promise<Aurelia>} Returns the started Aurelia instance.
*/
start(){
start():Promise<Aurelia>{
if(this.started){
return Promise.resolve(this);
}
Expand Down Expand Up @@ -277,9 +277,9 @@ export class Aurelia {
* @method withSingleton
* @param {Object} root The root view-model to load upon bootstrap.
* @param {string|Object} applicationHost The DOM object that Aurelia will attach to.
* @return {Aurelia} Returns the current Aurelia instance.
* @return {Promise<Aurelia>} Returns the current Aurelia instance.
*/
setRoot(root:string='app', applicationHost=null){
setRoot(root:string='app', applicationHost=null):Promise<Aurelia>{
var compositionEngine, instruction = {};

applicationHost = applicationHost || this.host;
Expand Down
8 changes: 4 additions & 4 deletions dist/system/aurelia-framework.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,19 @@ declare module 'aurelia-framework' {
* Loads plugins, then resources, and then starts the Aurelia instance.
*
* @method start
* @return {Aurelia} Returns the started Aurelia instance.
* @return {Promise<Aurelia>} Returns the started Aurelia instance.
*/
start(): any;
start(): Promise<Aurelia>;

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

/**
Expand Down
8 changes: 4 additions & 4 deletions src/aurelia.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ export class Aurelia {
* Loads plugins, then resources, and then starts the Aurelia instance.
*
* @method start
* @return {Aurelia} Returns the started Aurelia instance.
* @return {Promise<Aurelia>} Returns the started Aurelia instance.
*/
start(){
start():Promise<Aurelia>{
if(this.started){
return Promise.resolve(this);
}
Expand Down Expand Up @@ -208,9 +208,9 @@ export class Aurelia {
* @method withSingleton
* @param {Object} root The root view-model to load upon bootstrap.
* @param {string|Object} applicationHost The DOM object that Aurelia will attach to.
* @return {Aurelia} Returns the current Aurelia instance.
* @return {Promise<Aurelia>} Returns the current Aurelia instance.
*/
setRoot(root:string='app', applicationHost=null){
setRoot(root:string='app', applicationHost=null):Promise<Aurelia>{
var compositionEngine, instruction = {};

applicationHost = applicationHost || this.host;
Expand Down

0 comments on commit 9454851

Please sign in to comment.