test(types): test ComponentCustomProps
This commit is contained in:
parent
ff2d6d1cb7
commit
77283f4c94
@ -15,6 +15,12 @@ import {
|
|||||||
h
|
h
|
||||||
} from './index'
|
} from './index'
|
||||||
|
|
||||||
|
declare module 'vue' {
|
||||||
|
interface ComponentCustomProps {
|
||||||
|
hello?: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
describe('with object props', () => {
|
describe('with object props', () => {
|
||||||
interface ExpectedProps {
|
interface ExpectedProps {
|
||||||
a?: number | undefined
|
a?: number | undefined
|
||||||
@ -294,6 +300,7 @@ describe('with object props', () => {
|
|||||||
fff={(a, b) => ({ a: a > +b })}
|
fff={(a, b) => ({ a: a > +b })}
|
||||||
hhh={false}
|
hhh={false}
|
||||||
jjj={() => ''}
|
jjj={() => ''}
|
||||||
|
hello="hello"
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user