/
index.d.ts
37 lines (37 loc) · 1.1 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
export type VNode = any;
/**
* @fileoverview
* This file exports various methods that implement Babel's "automatic" JSX runtime API:
* - jsx(type, props, key)
* - jsxs(type, props, key)
* - jsxDEV(type, props, key, __source, __self)
*
* The implementation of createVNode here is optimized for performance.
* Benchmarks: https://esbench.com/bench/5f6b54a0b4632100a7dcd2b3
*/
/**
* JSX.Element factory used by Babel's {runtime:"automatic"} JSX transform
* @param {VNode['type']} type
* @param {VNode['props']} props
* @param {VNode['key']} [key]
* @param {string} [__self]
* @param {string} [__source]
*/
declare function createVNode(type: any, props: any, key?: any, __self?: string, __source?: string): {
type: any;
props: {};
key: any;
ref: any;
_children: any;
_parent: any;
_depth: number;
_dom: any;
_nextDom: any;
_component: any;
_hydrating: any;
constructor: any;
_original: number;
__source: string;
__self: string;
};
export { createVNode as jsx, createVNode as jsxs, createVNode as jsxDEV, Fragment };