From 48a6bee826e883b71c636dea2d49e51e239a9e53 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Sun, 20 Sep 2020 12:33:55 +0530 Subject: [PATCH] fix: add missing prepositions --- src/guide/typescript-support.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/guide/typescript-support.md b/src/guide/typescript-support.md index 1ca8d6f8bb..165539e771 100644 --- a/src/guide/typescript-support.md +++ b/src/guide/typescript-support.md @@ -110,7 +110,7 @@ const Component = defineComponent({ ### Annotating Return Types -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. +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. ```ts import { defineComponent } from 'vue' @@ -210,7 +210,7 @@ const Component = defineComponent({ }) ``` -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: +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: ```ts const year = ref('2020') // year's type: Ref