| 90 | |
| 91 | // class component |
| 92 | @Options({ |
| 93 | props: { |
| 94 | msg: String |
| 95 | } |
| 96 | }) |
| 97 | class ClassComponent extends Vue { |
| 98 | dataText = '' |
| 99 | get computedMsg(): string { |
| 100 | return `Message: ${(this.$props as any).msg}` |
| 101 | } |
| 102 | |
| 103 | changeMessage(text: string): void { |
| 104 | this.dataText = 'Updated' |
| 105 | } |
| 106 | } |
| 107 | expectType<Promise<string>>(renderToString(ClassComponent)) |
| 108 | |
| 109 | // No `attachTo` mounting option |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…