mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
+5
-1
@@ -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");
|
||||
|
||||
Vendored
+2
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user