@types/react-dom 19.0.5 → 19.1.0

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
@@ -2,13 +2,13 @@
2
2
  > `npm install --save @types/react-dom`
3
3
 
4
4
  # Summary
5
- This package contains type definitions for react-dom (https://reactjs.org).
5
+ This package contains type definitions for react-dom (https://react.dev/).
6
6
 
7
7
  # Details
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: Wed, 02 Apr 2025 06:39:08 GMT
11
+ * Last updated: Wed, 02 Apr 2025 07:33:00 GMT
12
12
  * Dependencies: none
13
13
  * Peer dependencies: [@types/react](https://npmjs.com/package/@types/react)
14
14
 
@@ -49,4 +49,25 @@ declare module "react" {
49
49
 
50
50
  // eslint-disable-next-line @typescript-eslint/no-empty-interface
51
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
+ }
52
73
  }
react-dom/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react-dom",
3
- "version": "19.0.5",
3
+ "version": "19.1.0",
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": "a49dc1da18dc4e2bb6470f674475beca5276efbb3ed76ec8812dcc8f4938e06e",
91
+ "typesPublisherContentHash": "4e6cc530d937c8906540c731a2f6336c4070bbb663e6076edf58dd87059945e1",
92
92
  "typeScriptVersion": "5.1"
93
93
  }