Skip to content

Commit 9b82e2c

Browse files
ktsnchrisvfritz
authored andcommitted
Add a note about this type inference (#1234)
1 parent 6919528 commit 9b82e2c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/v2/guide/typescript.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ We also plan to provide an option to scaffold a ready-to-go Vue + TypeScript pro
3131
}
3232
```
3333

34+
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.
35+
3436
See [TypeScript compiler options docs](https://www.typescriptlang.org/docs/handbook/compiler-options.html) for more details.
3537

3638
## Development Tooling

0 commit comments

Comments
 (0)