Skip to content

Commit 70211ae

Browse files
Jinjiangchrisvfritz
authored andcommitted
Small code convention fix (#1258)
1 parent eaedd4c commit 70211ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/v2/guide/typescript.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,14 @@ Because of the circular nature of Vue's declaration files, TypeScript may have d
152152
import Vue, { VNode } from 'vue'
153153

154154
const Component = Vue.extend({
155-
data() {
155+
data () {
156156
return {
157157
msg: 'Hello'
158158
}
159159
},
160160
methods: {
161161
// need annotation due to `this` in return type
162-
greet(): string {
162+
greet (): string {
163163
return this.msg + ' world'
164164
}
165165
},
@@ -170,7 +170,7 @@ const Component = Vue.extend({
170170
}
171171
},
172172
// `createElement` is inferred, but `render` needs return type
173-
render(createElement): VNode {
173+
render (createElement): VNode {
174174
return createElement('div', this.greeting)
175175
}
176176
})

0 commit comments

Comments
 (0)