Skip to content

Commit 6ca4b80

Browse files
committed
chore: more tests
1 parent 368b6a1 commit 6ca4b80

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

packages/dts-test/defineComponent.test-d.tsx

+10-1
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,16 @@ describe('function syntax w/ runtime props', () => {
13151315
)
13161316

13171317
defineComponent(
1318-
(_props: { msg: string }) => {
1318+
<T extends string>(_props: { msg: T }) => {
1319+
return () => {}
1320+
},
1321+
{
1322+
props: ['msg']
1323+
}
1324+
)
1325+
1326+
defineComponent(
1327+
<T extends string>(_props: { msg: T }) => {
13191328
return () => {}
13201329
},
13211330
{

0 commit comments

Comments
 (0)