@types/react-dom 19.0.4 → 19.0.6

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-dom/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for react-dom (https://reactjs.org).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 17 Feb 2025 09:33:55 GMT
11
+ * Last updated: Wed, 02 Apr 2025 07:02:12 GMT
12
12
  * Dependencies: none
13
13
  * Peer dependencies: [@types/react](https://npmjs.com/package/@types/react)
14
14
 
@@ -36,13 +36,38 @@ declare module "." {
36
36
  }
37
37
 
38
38
  declare module "react" {
39
+ interface ViewTransitionPseudoElement extends Animatable {
40
+ getComputedStyle: () => CSSStyleDeclaration;
41
+ }
42
+
39
43
  interface ViewTransitionInstance {
40
- group: Animatable;
41
- imagePair: Animatable;
42
- old: Animatable;
43
- new: Animatable;
44
+ group: ViewTransitionPseudoElement;
45
+ imagePair: ViewTransitionPseudoElement;
46
+ old: ViewTransitionPseudoElement;
47
+ new: ViewTransitionPseudoElement;
44
48
  }
45
49
 
46
50
  // eslint-disable-next-line @typescript-eslint/no-empty-interface
47
51
  interface GestureProvider extends AnimationTimeline {}
52
+
53
+ // @enableFragmentRefs
54
+ interface FragmentInstance {
55
+ blur: () => void;
56
+ focus: (focusOptions?: FocusOptions | undefined) => void;
57
+ focusLast: (focusOptions?: FocusOptions | undefined) => void;
58
+ observeUsing(observer: IntersectionObserver | ResizeObserver): void;
59
+ unobserveUsing(observer: IntersectionObserver | ResizeObserver): void;
60
+ getClientRects(): Array<DOMRect>;
61
+ getRootNode(getRootNodeOptions?: GetRootNodeOptions | undefined): Document | ShadowRoot | FragmentInstance;
62
+ addEventListener(
63
+ type: string,
64
+ listener: EventListener,
65
+ optionsOrUseCapture?: Parameters<Element["addEventListener"]>[2],
66
+ ): void;
67
+ removeEventListener(
68
+ type: string,
69
+ listener: EventListener,
70
+ optionsOrUseCapture?: Parameters<Element["removeEventListener"]>[2],
71
+ ): void;
72
+ }
48
73
  }
react-dom/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react-dom",
3
- "version": "19.0.4",
3
+ "version": "19.0.6",
4
4
  "description": "TypeScript definitions for react-dom",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom",
6
6
  "license": "MIT",
@@ -88,6 +88,6 @@
88
88
  "peerDependencies": {
89
89
  "@types/react": "^19.0.0"
90
90
  },
91
- "typesPublisherContentHash": "bfc8af4fdf6a2d4c4ddd0da50bc73db0a2b369f37b8685376cb3132d2aec3982",
92
- "typeScriptVersion": "5.0"
91
+ "typesPublisherContentHash": "e68b2deb34ec2da5d0d0a7aadc7161ff4aa7ff7535115f3eacd25a381d0f8d25",
92
+ "typeScriptVersion": "5.1"
93
93
  }