Skip to content

Commit

Permalink
test(types): test ComponentCustomProps
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 14, 2022
1 parent ff2d6d1 commit 77283f4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test-dts/defineComponent.test-d.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ import {
h
} from './index'

declare module 'vue' {
interface ComponentCustomProps {
hello?: string
}
}

describe('with object props', () => {
interface ExpectedProps {
a?: number | undefined
Expand Down Expand Up @@ -294,6 +300,7 @@ describe('with object props', () => {
fff={(a, b) => ({ a: a > +b })}
hhh={false}
jjj={() => ''}
hello="hello"
/>
)

Expand Down

0 comments on commit 77283f4

Please sign in to comment.