@types/react 19.0.4 → 19.0.5

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: Wed, 08 Jan 2025 20:02:26 GMT
11
+ * Last updated: Sun, 12 Jan 2025 10:34:31 GMT
12
12
  * Dependencies: [csstype](https://npmjs.com/package/csstype)
13
13
 
14
14
  # Credits
react/experimental.d.ts CHANGED
@@ -123,7 +123,15 @@ declare module "." {
123
123
  ): void;
124
124
  function experimental_taintObjectReference(message: string | undefined, object: Reference): void;
125
125
 
126
+ export interface ViewTransitionInstance {
127
+ /**
128
+ * The {@link ViewTransitionProps name} that was used in the corresponding {@link ViewTransition} component or `"auto"` if the `name` prop was omitted.
129
+ */
130
+ name: string;
131
+ }
132
+
126
133
  export interface ViewTransitionProps {
134
+ children?: ReactNode | undefined;
127
135
  /**
128
136
  * Assigns the {@link https://developer.chrome.com/blog/view-transitions-update-io24#view-transition-class `view-transition-class`} class to the underlying DOM node.
129
137
  */
@@ -136,7 +144,7 @@ declare module "." {
136
144
  * @default "auto"
137
145
  */
138
146
  name?: "auto" | (string & {}) | undefined;
139
- children?: ReactNode | undefined;
147
+ ref?: Ref<ViewTransitionInstance> | undefined;
140
148
  }
141
149
 
142
150
  /**
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "19.0.4",
3
+ "version": "19.0.5",
4
4
  "description": "TypeScript definitions for react",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -205,6 +205,6 @@
205
205
  "csstype": "^3.0.2"
206
206
  },
207
207
  "peerDependencies": {},
208
- "typesPublisherContentHash": "1faca4a7f97d59261f420b0b437332c7e5513b5febbebb40d1599180f6e27b64",
208
+ "typesPublisherContentHash": "0a571623856044e9033e40cfafae0f099a5baa107138ccc9a1097bf9fa7fa6cb",
209
209
  "typeScriptVersion": "5.0"
210
210
  }
@@ -123,7 +123,15 @@ declare module "." {
123
123
  ): void;
124
124
  function experimental_taintObjectReference(message: string | undefined, object: Reference): void;
125
125
 
126
+ export interface ViewTransitionInstance {
127
+ /**
128
+ * The {@link ViewTransitionProps name} that was used in the corresponding {@link ViewTransition} component or `"auto"` if the `name` prop was omitted.
129
+ */
130
+ name: string;
131
+ }
132
+
126
133
  export interface ViewTransitionProps {
134
+ children?: ReactNode | undefined;
127
135
  /**
128
136
  * Assigns the {@link https://developer.chrome.com/blog/view-transitions-update-io24#view-transition-class `view-transition-class`} class to the underlying DOM node.
129
137
  */
@@ -136,7 +144,7 @@ declare module "." {
136
144
  * @default "auto"
137
145
  */
138
146
  name?: "auto" | (string & {}) | undefined;
139
- children?: ReactNode | undefined;
147
+ ref?: Ref<ViewTransitionInstance> | undefined;
140
148
  }
141
149
 
142
150
  /**