Skip to content

Commit 41bafda

Browse files
re-fortkazupon
authored andcommitted
Add a note about this type inference (vuejs#433)
* Translate vuejs@9b82e2c * Update date
1 parent 8e573a7 commit 41bafda

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/v2/guide/typescript.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: TypeScript のサポート
3-
updated: 2017-10-29
3+
updated: 2017-11-08
44
type: guide
55
order: 404
66
---
@@ -31,6 +31,8 @@ order: 404
3131
}
3232
```
3333

34+
コンポーネントメソッド内で `this` の型をチェックするには `strict: true` (もしくは最低でも `strict` フラグの一部の `noImplicitThis: true`) を含める必要があることに注意してください。
35+
3436
より詳細なことについては [TypeScript compiler options docs](https://www.typescriptlang.org/docs/handbook/compiler-options.html) を見てください。
3537

3638
## 開発ツール

0 commit comments

Comments
 (0)