first commit
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
// global JSX namespace registration
|
||||
// somehow we have to copy-paste the jsx-runtime types here to make TypeScript happy
|
||||
import type { NativeElements, ReservedProps, VNode } 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
|
||||
[name: string]: any
|
||||
}
|
||||
export interface IntrinsicAttributes extends ReservedProps {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user