Skip to content

Commit 1d93c27

Browse files
committed
chore: update changelog
1 parent dbaca0a commit 1d93c27

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
# 0.2.1
2+
* Declare your expected prop types directly in TypeScript:
3+
```js
4+
import { createComponent, createElement as h } from '@vue/composition-api'
5+
6+
interface Props {
7+
msg: string
8+
}
9+
10+
const MyComponent = createComponent<Props>({
11+
setup(props) {
12+
return () => h('div', props.msg)
13+
}
14+
})
15+
```
16+
* Declare ref type in TypeScript:
17+
```js
18+
const dateRef = ref<Date>(new Date);
19+
```
20+
* Fix `createComponent` not working with `import()` [#81](https://github.com/vuejs/composition-api/issues/81).
21+
* Fix `inject` type declaration [#83](https://github.com/vuejs/composition-api/issues/83).
22+
123
# 0.2.0
224
## Fixed
325
* `computed` property is called immediately in `reactive()` [#79](https://github.com/vuejs/composition-api/issues/79).

0 commit comments

Comments
 (0)