@types/react
Advanced tools
| // Expose `JSX` namespace in `global` namespace | ||
| import * as React from "./"; | ||
| export { Fragment } from "./"; | ||
| export { Fragment, JSX } from "./"; | ||
| 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 {} | ||
| interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {} | ||
| interface IntrinsicElements extends React.JSX.IntrinsicElements {} | ||
| } | ||
| export interface JSXSource { | ||
@@ -17,0 +6,0 @@ /** |
| // Expose `JSX` namespace in `global` namespace | ||
| import * as React from "./"; | ||
| export { Fragment } from "./"; | ||
| export { Fragment, JSX } from "./"; | ||
| 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 {} | ||
| interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {} | ||
| interface IntrinsicElements extends React.JSX.IntrinsicElements {} | ||
| } | ||
| /** | ||
@@ -17,0 +6,0 @@ * Create a React element. |
| { | ||
| "name": "@types/react", | ||
| "version": "17.0.92", | ||
| "version": "17.0.93", | ||
| "description": "TypeScript definitions for react", | ||
@@ -173,4 +173,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react", | ||
| "peerDependencies": {}, | ||
| "typesPublisherContentHash": "da4ea555835ed9351d49379c846e164129f74215167b2ba494b81a001d70e689", | ||
| "typesPublisherContentHash": "f00e06cc61e90eb660b397e9894997a31e44201761613eb98ca0f1bf98203ffc", | ||
| "typeScriptVersion": "5.3" | ||
| } |
@@ -11,3 +11,3 @@ # Installation | ||
| ### Additional Details | ||
| * Last updated: Tue, 19 May 2026 17:48:56 GMT | ||
| * Last updated: Mon, 01 Jun 2026 18:00:20 GMT | ||
| * Dependencies: [@types/prop-types](https://npmjs.com/package/@types/prop-types), [@types/scheduler](https://npmjs.com/package/@types/scheduler), [csstype](https://npmjs.com/package/csstype) | ||
@@ -14,0 +14,0 @@ |
172048
-0.72%3358
-0.59%