UNPKG

1.2 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
16/**
17 * Create a React element.
18 *
19 * You should not use this function directly. Use JSX and a transpiler instead.
20 */
21export function jsx(
22 type: React.ElementType,
23 props: unknown,
24 key?: React.Key,
25): React.ReactElement;
26
27/**
28 * Create a React element.
29 *
30 * You should not use this function directly. Use JSX and a transpiler instead.
31 */
32export function jsxs(
33 type: React.ElementType,
34 props: unknown,
35 key?: React.Key,
36): React.ReactElement;