Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rudyxu1102 committed Jan 1, 2023
1 parent 6389039 commit 4f27ec6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion active-rfcs/0000-infer-attrs.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
- Implementation PR: [vuejs/core#7444](https://github.com/vuejs/core/pull/7444)

# Summary
Allow to infer `attrs` when passing type on the second param of`defineComponent`. And In the `setup-script`, passing generic type on the `useAttrs<T>` make `attrs` inferred.
Allow to infer `attrs` when passing type on the second param of `defineComponent` and `defineCustomElement`.
And in the `setup-script`, passing generic type on the `useAttrs<T>` make `attrs` inferred.

I already published an npm package named [vue-ts-utils](https://github.com/rudy-xhd/vue-ts-utils), so that you can use `defineComponent` to infer attrs in advance.

Expand Down

0 comments on commit 4f27ec6

Please sign in to comment.