You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
722 B
26 lines
722 B
// global JSX namespace registration |
|
// somehow we have to copy=pase the jsx-runtime types here to make TypeScript happy |
|
import type { |
|
VNode, |
|
IntrinsicElementAttributes, |
|
ReservedProps, |
|
NativeElements |
|
} from '@vue/runtime-dom' |
|
|
|
declare global { |
|
namespace JSX { |
|
export interface Element extends VNode {} |
|
export interface ElementClass { |
|
$props: {} |
|
} |
|
export interface ElementAttributesProperty { |
|
$props: {} |
|
} |
|
export interface IntrinsicElements extends NativeElements { |
|
// allow arbitrary elements |
|
// @ts-ignore suppress ts:2374 = Duplicate string index signature. |
|
[name: string]: any |
|
} |
|
export interface IntrinsicAttributes extends ReservedProps {} |
|
} |
|
}
|
|
|