Update vue.d.ts

This commit is contained in:
Masataka Kuwabara
2015-08-08 12:59:50 +09:00
parent a95ee80de0
commit 23a854fc0e
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;
}
}