Skip to content

Commit

Permalink
fix(types/jsx): remove $slots children override
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Mar 26, 2023
1 parent 27e1e38 commit 28e30c8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions packages/dts-test/tsx.test-d.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions packages/vue/jsx-runtime/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,4 @@ export namespace JSX {
[name: string]: any
}
export interface IntrinsicAttributes extends ReservedProps {}
export interface ElementChildrenAttribute {
$slots: {}
}
}

0 comments on commit 28e30c8

Please sign in to comment.