diff --git a/src/v2/guide/typescript.md b/src/v2/guide/typescript.md index e7d9b61f00..2cfc80082d 100644 --- a/src/v2/guide/typescript.md +++ b/src/v2/guide/typescript.md @@ -31,6 +31,8 @@ We also plan to provide an option to scaffold a ready-to-go Vue + TypeScript pro } ``` +Note that you have to include `strict: true` (or at least `noImplicitThis: true` which is a part of `strict` flag) to leverage type checking of `this` in component methods otherwise it is always treated as `any` type. + See [TypeScript compiler options docs](https://www.typescriptlang.org/docs/handbook/compiler-options.html) for more details. ## Development Tooling