fix(types/jsx): remove $slots children override

This commit is contained in:
Evan You 2023-03-26 17:44:01 +08:00
parent 27e1e38641
commit 28e30c819d
2 changed files with 1 additions and 3 deletions

View File

@ -5,6 +5,7 @@ import { expectType } from './utils'
expectType<VNode>(<div />)
expectType<JSX.Element>(<div />)
expectType<JSX.Element>(<div id="foo" />)
expectType<JSX.Element>(<div>hello</div>)
expectType<JSX.Element>(<input value="foo" />)
// @ts-expect-error style css property validation

View File

@ -34,7 +34,4 @@ export namespace JSX {
[name: string]: any
}
export interface IntrinsicAttributes extends ReservedProps {}
export interface ElementChildrenAttribute {
$slots: {}
}
}