Skip to content

Commit 7ef3722

Browse files
fix: add missing prepositions (#518)
1 parent 3c94785 commit 7ef3722

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guide/typescript-support.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const Component = defineComponent({
110110

111111
### Annotating Return Types
112112

113-
Because of the circular nature of Vue’s declaration files, TypeScript may have difficulties inferring the types of computed. For this reason, you may need to annotate the return type computed properties.
113+
Because of the circular nature of Vue’s declaration files, TypeScript may have difficulties inferring the types of computed. For this reason, you may need to annotate the return type of computed properties.
114114

115115
```ts
116116
import { defineComponent } from 'vue'
@@ -210,7 +210,7 @@ const Component = defineComponent({
210210
})
211211
```
212212

213-
Sometimes we may need to specify complex types for a ref's inner value. We can do that simply passing a generic argument when calling ref to override the default inference:
213+
Sometimes we may need to specify complex types for a ref's inner value. We can do that by simply passing a generic argument when calling ref to override the default inference:
214214

215215
```ts
216216
const year = ref<string | number>('2020') // year's type: Ref<string | number>

0 commit comments

Comments
 (0)