瀏覽代碼

chore: document TS changes in changelog [ci skip]

Evan You 3 年之前
父節點
當前提交
0198f9f9ee
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      CHANGELOG.md

+ 6 - 0
CHANGELOG.md

@@ -117,6 +117,12 @@ In addition, the following features are explicitly **NOT** ported:
 - ❌ Reactivity transform (still experimental)
 - ❌ `expose` option is not supported for options components (but `defineExpose()` is supported in `<script setup>`).
 
+### TypeScript Changes
+
+- `defineComponent` provides improved type inference similar to that of Vue 3. Note the type of `this` inside `defineComponent()` is not interoperable with `this` from `Vue.extend()`.
+
+- Similar to Vue 3, TSX support is now built-in. If your project previously had manual JSX type shims, make sure to remove them.
+
 ## Upgrade Guide
 
 ### Vue CLI / webpack