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

@@ -40,11 +40,11 @@ export class VueRenderer {
}
}
get ref() {
get ref(): any {
return this.editor.contentComponent?.ctx.$refs[this.id]
}
updateProps(props: AnyObject = {}) {
updateProps(props: AnyObject = {}): void {
Object
.entries(props)
.forEach(([key, value]) => {
@@ -52,7 +52,7 @@ export class VueRenderer {
})
}
destroy() {
destroy(): void {
this.editor.vueRenderers.delete(this.id)
}
}