File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 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 ) .
You can’t perform that action at this time.
0 commit comments