Merge pull request #5272 from pocke/vue-extend-fix

Fix vue.d.ts
This commit is contained in:
Masahiro Wakame
2015-08-08 16:38:57 +09:00
2 changed files with 7 additions and 3 deletions
+5 -1
View File
@@ -17,7 +17,7 @@ module myapp {
});
this.methods = {
action: this.action
}
};
}
action(): void {
console.log("action");
@@ -27,3 +27,7 @@ module myapp {
var app = new myapp.Application();
app.$mount("#main");
var AppConstructor = Vue.extend({});
var extendedApp = new AppConstructor();
app.$mount("#main");
+2 -2
View File
@@ -120,7 +120,7 @@ declare module vuejs {
* http://vuejs.org/api/global-api.html
*/
static config: VueConfig;
static extend(options: {}): Vue;
static extend(options: {}): typeof Vue;
static directive(id: string, definition?: {}): void;
static directive(id: string, definition?: VueCallback): void;
static filter(id: string, definition?: FilterCallback): void;
@@ -168,4 +168,4 @@ import Vue = vuejs.Vue;
declare module "vue" {
import vue = vuejs.Vue;
export = vue;
}
}