From 68fdd3ee917692a6ec9b6411641ba970cc269678 Mon Sep 17 00:00:00 2001 From: Amour1688 Date: Mon, 14 Sep 2020 09:42:36 +0800 Subject: [PATCH] docs: set jsx as `preserve` in tsconfig.json --- src/guide/typescript-support.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/guide/typescript-support.md b/src/guide/typescript-support.md index c0b54bcf0..9a70c6b03 100644 --- a/src/guide/typescript-support.md +++ b/src/guide/typescript-support.md @@ -16,6 +16,7 @@ "module": "esnext", // 这样就可以对 `this` 上的数据属性进行更严格的推断` "strict": true, + "jsx": "preserve", "moduleResolution": "node" } }