@types/react 18.2.66 → 18.2.68
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/README.md +1 -1
- react/experimental.d.ts +7 -0
- react/index.d.ts +15 -0
- react/package.json +2 -2
- react/ts5.0/experimental.d.ts +7 -0
- react/ts5.0/index.d.ts +15 -0
react/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.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Fri, 22 Mar 2024 18:07:25 GMT
|
12
12
|
* 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)
|
13
13
|
|
14
14
|
# Credits
|
react/experimental.d.ts
CHANGED
@@ -135,4 +135,11 @@ declare module "." {
|
|
135
135
|
value: TaintableUniqueValue,
|
136
136
|
): void;
|
137
137
|
function experimental_taintObjectReference(message: string | undefined, object: Reference): void;
|
138
|
+
|
139
|
+
export interface HTMLAttributes<T> {
|
140
|
+
/**
|
141
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert
|
142
|
+
*/
|
143
|
+
inert?: boolean | undefined;
|
144
|
+
}
|
138
145
|
}
|
react/index.d.ts
CHANGED
@@ -4069,18 +4069,33 @@ declare namespace React {
|
|
4069
4069
|
// React.PropTypes
|
4070
4070
|
// ----------------------------------------------------------------------
|
4071
4071
|
|
4072
|
+
/**
|
4073
|
+
* @deprecated Use `Validator` from the ´prop-types` instead.
|
4074
|
+
*/
|
4072
4075
|
type Validator<T> = PropTypes.Validator<T>;
|
4073
4076
|
|
4077
|
+
/**
|
4078
|
+
* @deprecated Use `Requireable` from the ´prop-types` instead.
|
4079
|
+
*/
|
4074
4080
|
type Requireable<T> = PropTypes.Requireable<T>;
|
4075
4081
|
|
4082
|
+
/**
|
4083
|
+
* @deprecated Use `ValidationMap` from the ´prop-types` instead.
|
4084
|
+
*/
|
4076
4085
|
type ValidationMap<T> = PropTypes.ValidationMap<T>;
|
4077
4086
|
|
4087
|
+
/**
|
4088
|
+
* @deprecated Use `WeakValidationMap` from the ´prop-types` instead.
|
4089
|
+
*/
|
4078
4090
|
type WeakValidationMap<T> = {
|
4079
4091
|
[K in keyof T]?: null extends T[K] ? Validator<T[K] | null | undefined>
|
4080
4092
|
: undefined extends T[K] ? Validator<T[K] | null | undefined>
|
4081
4093
|
: Validator<T[K]>;
|
4082
4094
|
};
|
4083
4095
|
|
4096
|
+
/**
|
4097
|
+
* @deprecated Use `PropTypes.*` where `PropTypes` comes from `import * as PropTypes from 'prop-types'` instead.
|
4098
|
+
*/
|
4084
4099
|
interface ReactPropTypes {
|
4085
4100
|
any: typeof PropTypes.any;
|
4086
4101
|
array: typeof PropTypes.array;
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "18.2.
|
3
|
+
"version": "18.2.68",
|
4
4
|
"description": "TypeScript definitions for react",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
6
|
"license": "MIT",
|
@@ -206,6 +206,6 @@
|
|
206
206
|
"@types/scheduler": "*",
|
207
207
|
"csstype": "^3.0.2"
|
208
208
|
},
|
209
|
-
"typesPublisherContentHash": "
|
209
|
+
"typesPublisherContentHash": "5afa771a44d504996ddef98e8c46637a7f0982faf7948711f56a93e313a2b283",
|
210
210
|
"typeScriptVersion": "4.7"
|
211
211
|
}
|
react/ts5.0/experimental.d.ts
CHANGED
@@ -135,4 +135,11 @@ declare module "." {
|
|
135
135
|
value: TaintableUniqueValue,
|
136
136
|
): void;
|
137
137
|
function experimental_taintObjectReference(message: string | undefined, object: Reference): void;
|
138
|
+
|
139
|
+
export interface HTMLAttributes<T> {
|
140
|
+
/**
|
141
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert
|
142
|
+
*/
|
143
|
+
inert?: boolean | undefined;
|
144
|
+
}
|
138
145
|
}
|
react/ts5.0/index.d.ts
CHANGED
@@ -4070,18 +4070,33 @@ declare namespace React {
|
|
4070
4070
|
// React.PropTypes
|
4071
4071
|
// ----------------------------------------------------------------------
|
4072
4072
|
|
4073
|
+
/**
|
4074
|
+
* @deprecated Use `Validator` from the ´prop-types` instead.
|
4075
|
+
*/
|
4073
4076
|
type Validator<T> = PropTypes.Validator<T>;
|
4074
4077
|
|
4078
|
+
/**
|
4079
|
+
* @deprecated Use `Requireable` from the ´prop-types` instead.
|
4080
|
+
*/
|
4075
4081
|
type Requireable<T> = PropTypes.Requireable<T>;
|
4076
4082
|
|
4083
|
+
/**
|
4084
|
+
* @deprecated Use `ValidationMap` from the ´prop-types` instead.
|
4085
|
+
*/
|
4077
4086
|
type ValidationMap<T> = PropTypes.ValidationMap<T>;
|
4078
4087
|
|
4088
|
+
/**
|
4089
|
+
* @deprecated Use `WeakValidationMap` from the ´prop-types` instead.
|
4090
|
+
*/
|
4079
4091
|
type WeakValidationMap<T> = {
|
4080
4092
|
[K in keyof T]?: null extends T[K] ? Validator<T[K] | null | undefined>
|
4081
4093
|
: undefined extends T[K] ? Validator<T[K] | null | undefined>
|
4082
4094
|
: Validator<T[K]>;
|
4083
4095
|
};
|
4084
4096
|
|
4097
|
+
/**
|
4098
|
+
* @deprecated Use `PropTypes.*` where `PropTypes` comes from `import * as PropTypes from 'prop-types'` instead.
|
4099
|
+
*/
|
4085
4100
|
interface ReactPropTypes {
|
4086
4101
|
any: typeof PropTypes.any;
|
4087
4102
|
array: typeof PropTypes.array;
|