Skip to content

Commit 9be5fbf

Browse files
committed
fix: typo
1 parent 12acb3b commit 9be5fbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

active-rfcs/0000-infer-attrs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Summary
77
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.
88

9-
I already publish 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.
9+
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.
1010

1111
# Basic example
1212

@@ -19,7 +19,7 @@ const Comp = defineComponent({
1919
}
2020
}, { attrs: {} as { bar: number } })
2121

22-
const comp = <Comp foo={'1'} bar={1} />
22+
const comp = <Comp foo={'str'} bar={1} />
2323
```
2424

2525
## Using `useAttrs<T>` in `script-setup`

0 commit comments

Comments
 (0)