improve some types, fix #213
This commit is contained in:
@@ -11,11 +11,11 @@ export class VueRenderer {
|
||||
this.ref = new Component(props).$mount()
|
||||
}
|
||||
|
||||
get element() {
|
||||
get element(): Element {
|
||||
return this.ref.$el
|
||||
}
|
||||
|
||||
updateProps(props: AnyObject = {}) {
|
||||
updateProps(props: AnyObject = {}): void {
|
||||
if (!this.ref.$props) {
|
||||
return
|
||||
}
|
||||
@@ -33,7 +33,7 @@ export class VueRenderer {
|
||||
Vue.config.silent = originalSilent
|
||||
}
|
||||
|
||||
destroy() {
|
||||
destroy(): void {
|
||||
this.ref.$destroy()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user