Skip to content

Commit

Permalink
chore: more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Mar 27, 2023
1 parent 368b6a1 commit 6ca4b80
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/dts-test/defineComponent.test-d.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,16 @@ describe('function syntax w/ runtime props', () => {
)

defineComponent(
(_props: { msg: string }) => {
<T extends string>(_props: { msg: T }) => {
return () => {}
},
{
props: ['msg']
}
)

defineComponent(
<T extends string>(_props: { msg: T }) => {
return () => {}
},
{
Expand Down

0 comments on commit 6ca4b80

Please sign in to comment.