mirror of https://github.com/vuejs/core.git
fix(types/jsx): remove $slots children override
This commit is contained in:
parent
27e1e38641
commit
28e30c819d
|
@ -5,6 +5,7 @@ import { expectType } from './utils'
|
||||||
expectType<VNode>(<div />)
|
expectType<VNode>(<div />)
|
||||||
expectType<JSX.Element>(<div />)
|
expectType<JSX.Element>(<div />)
|
||||||
expectType<JSX.Element>(<div id="foo" />)
|
expectType<JSX.Element>(<div id="foo" />)
|
||||||
|
expectType<JSX.Element>(<div>hello</div>)
|
||||||
expectType<JSX.Element>(<input value="foo" />)
|
expectType<JSX.Element>(<input value="foo" />)
|
||||||
|
|
||||||
// @ts-expect-error style css property validation
|
// @ts-expect-error style css property validation
|
||||||
|
|
|
@ -34,7 +34,4 @@ export namespace JSX {
|
||||||
[name: string]: any
|
[name: string]: any
|
||||||
}
|
}
|
||||||
export interface IntrinsicAttributes extends ReservedProps {}
|
export interface IntrinsicAttributes extends ReservedProps {}
|
||||||
export interface ElementChildrenAttribute {
|
|
||||||
$slots: {}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue