Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
rudyxu1102 committed Jan 1, 2023
1 parent 4f27ec6 commit 0169cde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion active-rfcs/0000-infer-attrs.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Summary
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.
And in the `setup-script`, passing generic type on the `useAttrs<T>` will infer `attrs` to `T`.

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 0169cde

Please sign in to comment.