UNPKG

845 BTypeScriptView Raw
1/* eslint-disable @typescript-eslint/prefer-ts-expect-error */
2import type { NativeElements, ReservedProps, VNode } from '@vue/runtime-dom'
3
4/**
5 * JSX namespace for usage with @jsxImportsSource directive
6 * when ts compilerOptions.jsx is 'react-jsx' or 'react-jsxdev'
7 * https://www.typescriptlang.org/tsconfig#jsxImportSource
8 */
9export { h as jsx, h as jsxDEV, Fragment } from '@vue/runtime-dom'
10
11export namespace JSX {
12 export interface Element extends VNode {}
13 export interface ElementClass {
14 $props: {}
15 }
16 export interface ElementAttributesProperty {
17 $props: {}
18 }
19 export interface IntrinsicElements extends NativeElements {
20 // allow arbitrary elements
21 // @ts-ignore suppress ts:2374 = Duplicate string index signature.
22 [name: string]: any
23 }
24 export interface IntrinsicAttributes extends ReservedProps {}
25}