improve some types, fix #213

This commit is contained in:
Philipp Kühn
2021-03-17 21:21:57 +01:00
parent 7d740a5cd8
commit 7d52a3aad1
8 changed files with 13 additions and 13 deletions

View File

@@ -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()
}
}