// Copyright 2024 The Lynx Authors. All rights reserved. // Licensed under the Apache License Version 2.0 that can be found in the // LICENSE file in the root directory of this source tree. import * as React from 'react'; import * as Lynx from '@lynx-js/types'; export { jsxDEV, Fragment, JSXSource } from 'react/jsx-dev-runtime'; export { jsx, jsxs } from 'react/jsx-runtime'; // Modified from // https://github.com/DefinitelyTyped/DefinitelyTyped/blob/981449c691b9be0fca569c48151fc57606f5ea7a/types/react/jsx-runtime.d.ts#L5 export namespace JSX { type ElementType = React.JSX.ElementType; 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 = React.JSX.LibraryManagedAttributes; interface IntrinsicAttributes {} interface IntrinsicClassAttributes extends React.JSX.IntrinsicClassAttributes {} interface IntrinsicElements extends Lynx.IntrinsicElements {} }