Skip to content

Commit da57f92

Browse files
committed
chore: add ArrayElement
1 parent 65b93dc commit da57f92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages-private/dts-test/functionalComponent.test-d.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { expectType } from './utils'
99

1010
// simple function signature
1111
const Foo = (props: { foo: number }) => h(Text, null, props.foo)
12-
const VaporComp = (props: { foo: number }) => document.createElement('div')
12+
const VaporComp = (props: { foo: number }) => [<div>123</div>]
1313

1414
// TSX
1515
expectType<JSX.Element>(<Foo foo={1} />)

packages/vue/jsx.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { Block } from '@vue/runtime-vapor'
66

77
declare global {
88
namespace JSX {
9-
export type Element = VNode | Block
9+
export type Element = VNode | Block | Element[]
1010
export interface IntrinsicElements extends NativeElements {
1111
// allow arbitrary elements
1212
// @ts-ignore suppress ts:2374 = Duplicate string index signature.

0 commit comments

Comments
 (0)