UNPKG

khulnasoft.com

Version:

Development tools for Khulnasoft CMS integration

47 lines (43 loc) 1.26 kB
// Expose `JSX` namespace in `global` namespace import * as React from "./react"; export { Fragment } from "./react"; export namespace JSX { interface Element extends React.JSX.Element {} interface ElementClass extends React.JSX.ElementClass {} interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {} interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {} type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes< C, P >; interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes { children?: any; } interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> { children?: any; } interface IntrinsicElements extends React.JSX.IntrinsicElements {} } /** * Create a React element. * * You should not use this function directly. Use JSX and a transpiler instead. */ export function jsx( type: React.ElementType, props: unknown, key?: React.Key ): React.ReactElement; /** * Create a React element. * * You should not use this function directly. Use JSX and a transpiler instead. */ export function jsxs( type: React.ElementType, props: unknown, key?: React.Key ): React.ReactElement;