Просмотр исходного кода

chore: document TS changes in changelog [ci skip]

Evan You 3 лет назад
Родитель
Сommit
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