Skip to content

Commit 017cbc7

Browse files
committed
test: simplify
1 parent f19840d commit 017cbc7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/fixtures/basic-types/app/app-types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,8 @@ describe('components', () => {
386386

387387
it('correctly includes event types with island components', () => {
388388
const Comp = defineComponent({
389-
__typeProps: {
390-
onClick: Function as (foo: string) => any,
389+
__typeProps: {} as {
390+
onClick: (foo: string) => any
391391
},
392392
})
393393
const IslandComp = Comp as unknown as IslandComponent<typeof Comp>
@@ -405,8 +405,8 @@ describe('components', () => {
405405

406406
it('correctly includes event types with lazy components', () => {
407407
const Comp = defineComponent({
408-
__typeProps: {
409-
onClick: Function as (foo: string) => any,
408+
__typeProps: {} as {
409+
onClick: (foo: string) => any
410410
},
411411
})
412412
const LazyComp = Comp as unknown as LazyComponent<typeof Comp>

0 commit comments

Comments
 (0)