@types/react 18.2.42 → 18.2.44

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 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: Mon, 04 Dec 2023 20:35:43 GMT
11
+ * Last updated: Tue, 12 Dec 2023 22:35:35 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/index.d.ts CHANGED
@@ -37,10 +37,8 @@ declare namespace React {
37
37
  // React Elements
38
38
  // ----------------------------------------------------------------------
39
39
 
40
- type ElementType<P = any> =
41
- | {
42
- [K in keyof JSX.IntrinsicElements]: P extends JSX.IntrinsicElements[K] ? K : never;
43
- }[keyof JSX.IntrinsicElements]
40
+ type ElementType<P = any, Tag extends keyof JSX.IntrinsicElements = keyof JSX.IntrinsicElements> =
41
+ | { [K in Tag]: P extends JSX.IntrinsicElements[K] ? K : never }[Tag]
44
42
  | ComponentType<P>;
45
43
  type ComponentType<P = {}> = ComponentClass<P> | FunctionComponent<P>;
46
44
 
@@ -1651,7 +1649,7 @@ declare namespace React {
1651
1649
  onTransitionEndCapture?: TransitionEventHandler<T> | undefined;
1652
1650
  }
1653
1651
 
1654
- export interface CSSProperties extends CSS.Properties<string | number> {
1652
+ export interface CSSProperties extends CSS.Properties<(string & {}) | number> {
1655
1653
  /**
1656
1654
  * The index signature was removed to enable closed typing for style
1657
1655
  * using CSSType. You're able to use type assertion or module augmentation
@@ -1978,7 +1976,6 @@ declare namespace React {
1978
1976
  id?: string | undefined;
1979
1977
  lang?: string | undefined;
1980
1978
  nonce?: string | undefined;
1981
- placeholder?: string | undefined;
1982
1979
  slot?: string | undefined;
1983
1980
  spellCheck?: Booleanish | undefined;
1984
1981
  style?: CSSProperties | undefined;
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "18.2.42",
3
+ "version": "18.2.44",
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
  "@types/scheduler": "*",
202
202
  "csstype": "^3.0.2"
203
203
  },
204
- "typesPublisherContentHash": "d89c7ef8f0a7ec1f3081404a330d066b905c2554ae9b41deefa84b120269ebee",
204
+ "typesPublisherContentHash": "94294f4b870818298a35c662227962b8b128fed8e13abe52273bf848e9ed7f4f",
205
205
  "typeScriptVersion": "4.6"
206
206
  }
react/ts5.0/index.d.ts CHANGED
@@ -1652,7 +1652,7 @@ declare namespace React {
1652
1652
  onTransitionEndCapture?: TransitionEventHandler<T> | undefined;
1653
1653
  }
1654
1654
 
1655
- export interface CSSProperties extends CSS.Properties<string | number> {
1655
+ export interface CSSProperties extends CSS.Properties<(string & {}) | number> {
1656
1656
  /**
1657
1657
  * The index signature was removed to enable closed typing for style
1658
1658
  * using CSSType. You're able to use type assertion or module augmentation
@@ -1979,7 +1979,6 @@ declare namespace React {
1979
1979
  id?: string | undefined;
1980
1980
  lang?: string | undefined;
1981
1981
  nonce?: string | undefined;
1982
- placeholder?: string | undefined;
1983
1982
  slot?: string | undefined;
1984
1983
  spellCheck?: Booleanish | undefined;
1985
1984
  style?: CSSProperties | undefined;