@types/react 18.3.28 → 18.3.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- react v18.3/README.md +1 -1
- react v18.3/index.d.ts +2 -3
- react v18.3/jsx-dev-runtime.d.ts +1 -13
- react v18.3/jsx-runtime.d.ts +1 -13
- react v18.3/package.json +3 -3
- react v18.3/ts5.0/index.d.ts +2 -3
- react v18.3/ts5.0/jsx-dev-runtime.d.ts +1 -12
- react v18.3/ts5.0/jsx-runtime.d.ts +1 -12
react v18.3/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for react (https://react.dev/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react/v18.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Mon, 01 Jun 2026 18:00:20 GMT
|
|
12
12
|
* Dependencies: [@types/prop-types](https://npmjs.com/package/@types/prop-types), [csstype](https://npmjs.com/package/csstype)
|
|
13
13
|
|
|
14
14
|
# Credits
|
react v18.3/index.d.ts
CHANGED
|
@@ -3271,7 +3271,7 @@ declare namespace React {
|
|
|
3271
3271
|
alt?: string | undefined;
|
|
3272
3272
|
crossOrigin?: CrossOrigin;
|
|
3273
3273
|
decoding?: "async" | "auto" | "sync" | undefined;
|
|
3274
|
-
fetchPriority?: "high" | "low" | "auto";
|
|
3274
|
+
fetchPriority?: "high" | "low" | "auto" | undefined;
|
|
3275
3275
|
height?: number | string | undefined;
|
|
3276
3276
|
loading?: "eager" | "lazy" | undefined;
|
|
3277
3277
|
referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
|
|
@@ -3436,7 +3436,7 @@ declare namespace React {
|
|
|
3436
3436
|
as?: string | undefined;
|
|
3437
3437
|
blocking?: "render" | (string & {}) | undefined;
|
|
3438
3438
|
crossOrigin?: CrossOrigin;
|
|
3439
|
-
fetchPriority?: "high" | "low" | "auto";
|
|
3439
|
+
fetchPriority?: "high" | "low" | "auto" | undefined;
|
|
3440
3440
|
href?: string | undefined;
|
|
3441
3441
|
hrefLang?: string | undefined;
|
|
3442
3442
|
integrity?: string | undefined;
|
|
@@ -4284,7 +4284,6 @@ declare namespace React {
|
|
|
4284
4284
|
digest?: string | null;
|
|
4285
4285
|
}
|
|
4286
4286
|
|
|
4287
|
-
// Keep in sync with JSX namespace in ./jsx-runtime.d.ts and ./jsx-dev-runtime.d.ts
|
|
4288
4287
|
namespace JSX {
|
|
4289
4288
|
type ElementType = GlobalJSXElementType;
|
|
4290
4289
|
interface Element extends GlobalJSXElement {}
|
react v18.3/jsx-dev-runtime.d.ts
CHANGED
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
import * as React from "./";
|
|
2
|
-
export { Fragment } from "./";
|
|
3
|
-
|
|
4
|
-
export 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
|
-
}
|
|
2
|
+
export { Fragment, JSX } from "./";
|
|
15
3
|
|
|
16
4
|
export interface JSXSource {
|
|
17
5
|
/**
|
react v18.3/jsx-runtime.d.ts
CHANGED
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
import * as React from "./";
|
|
2
|
-
export { Fragment } from "./";
|
|
3
|
-
|
|
4
|
-
export 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
|
-
}
|
|
2
|
+
export { Fragment, JSX } from "./";
|
|
15
3
|
|
|
16
4
|
/**
|
|
17
5
|
* Create a React element.
|
react v18.3/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/react",
|
|
3
|
-
"version": "18.3.
|
|
3
|
+
"version": "18.3.30",
|
|
4
4
|
"description": "TypeScript definitions for react",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
|
6
6
|
"license": "MIT",
|
|
@@ -201,6 +201,6 @@
|
|
|
201
201
|
"csstype": "^3.2.2"
|
|
202
202
|
},
|
|
203
203
|
"peerDependencies": {},
|
|
204
|
-
"typesPublisherContentHash": "
|
|
205
|
-
"typeScriptVersion": "5.
|
|
204
|
+
"typesPublisherContentHash": "5bd63ddf1aad3252c72a4c7ce278c85f2af05ccf91c0405d4c8ff1aa583e401d",
|
|
205
|
+
"typeScriptVersion": "5.3"
|
|
206
206
|
}
|
react v18.3/ts5.0/index.d.ts
CHANGED
|
@@ -3272,7 +3272,7 @@ declare namespace React {
|
|
|
3272
3272
|
alt?: string | undefined;
|
|
3273
3273
|
crossOrigin?: CrossOrigin;
|
|
3274
3274
|
decoding?: "async" | "auto" | "sync" | undefined;
|
|
3275
|
-
fetchPriority?: "high" | "low" | "auto";
|
|
3275
|
+
fetchPriority?: "high" | "low" | "auto" | undefined;
|
|
3276
3276
|
height?: number | string | undefined;
|
|
3277
3277
|
loading?: "eager" | "lazy" | undefined;
|
|
3278
3278
|
referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
|
|
@@ -3437,7 +3437,7 @@ declare namespace React {
|
|
|
3437
3437
|
as?: string | undefined;
|
|
3438
3438
|
blocking?: "render" | (string & {}) | undefined;
|
|
3439
3439
|
crossOrigin?: CrossOrigin;
|
|
3440
|
-
fetchPriority?: "high" | "low" | "auto";
|
|
3440
|
+
fetchPriority?: "high" | "low" | "auto" | undefined;
|
|
3441
3441
|
href?: string | undefined;
|
|
3442
3442
|
hrefLang?: string | undefined;
|
|
3443
3443
|
integrity?: string | undefined;
|
|
@@ -4284,7 +4284,6 @@ declare namespace React {
|
|
|
4284
4284
|
digest?: string | null;
|
|
4285
4285
|
}
|
|
4286
4286
|
|
|
4287
|
-
// Keep in sync with JSX namespace in ./jsx-runtime.d.ts and ./jsx-dev-runtime.d.ts
|
|
4288
4287
|
namespace JSX {
|
|
4289
4288
|
interface Element extends GlobalJSXElement {}
|
|
4290
4289
|
interface ElementClass extends GlobalJSXElementClass {}
|
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
import * as React from "./";
|
|
2
|
-
export { Fragment } from "./";
|
|
3
|
-
|
|
4
|
-
export namespace JSX {
|
|
5
|
-
interface Element extends React.JSX.Element {}
|
|
6
|
-
interface ElementClass extends React.JSX.ElementClass {}
|
|
7
|
-
interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
|
|
8
|
-
interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
|
|
9
|
-
type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
|
|
10
|
-
interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
|
|
11
|
-
interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
|
|
12
|
-
interface IntrinsicElements extends React.JSX.IntrinsicElements {}
|
|
13
|
-
}
|
|
2
|
+
export { Fragment, JSX } from "./";
|
|
14
3
|
|
|
15
4
|
export interface JSXSource {
|
|
16
5
|
/**
|
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
import * as React from "./";
|
|
2
|
-
export { Fragment } from "./";
|
|
3
|
-
|
|
4
|
-
export namespace JSX {
|
|
5
|
-
interface Element extends React.JSX.Element {}
|
|
6
|
-
interface ElementClass extends React.JSX.ElementClass {}
|
|
7
|
-
interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
|
|
8
|
-
interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
|
|
9
|
-
type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
|
|
10
|
-
interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
|
|
11
|
-
interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
|
|
12
|
-
interface IntrinsicElements extends React.JSX.IntrinsicElements {}
|
|
13
|
-
}
|
|
2
|
+
export { Fragment, JSX } from "./";
|
|
14
3
|
|
|
15
4
|
/**
|
|
16
5
|
* Create a React element.
|