UNPKG

1.41 kBTypeScriptView Raw
1import * as React from "./";
2export { Fragment } from "./";
3
4export namespace JSX {
5 type ElementType = React.JSX.ElementType;
6 interface Element extends React.JSX.Element {}
7 interface ElementClass extends React.JSX.ElementClass {}
8 interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
9 interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
10 type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
11 interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
12 interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
13 interface IntrinsicElements extends React.JSX.IntrinsicElements {}
14}
15
16export interface JSXSource {
17 /**
18 * The source file where the element originates from.
19 */
20 fileName?: string | undefined;
21
22 /**
23 * The line number where the element was created.
24 */
25 lineNumber?: number | undefined;
26
27 /**
28 * The column number where the element was created.
29 */
30 columnNumber?: number | undefined;
31}
32
33/**
34 * Create a React element.
35 *
36 * You should not use this function directly. Use JSX and a transpiler instead.
37 */
38export function jsxDEV(
39 type: React.ElementType,
40 props: unknown,
41 key: React.Key | undefined,
42 isStatic: boolean,
43 source?: JSXSource,
44 self?: unknown,
45): React.ReactElement;