@types/react-dom 19.2.0 → 19.2.2
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 +1 -1
- react-dom/canary.d.ts +37 -0
- react-dom/experimental.d.ts +0 -33
- react-dom/package.json +2 -2
react-dom/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for react-dom (https://react.dev/).
|
|
|
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:
|
|
11
|
+
* Last updated: Mon, 13 Oct 2025 14:36:45 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Peer dependencies: [@types/react](https://npmjs.com/package/@types/react)
|
|
14
14
|
|
react-dom/canary.d.ts
CHANGED
|
@@ -32,3 +32,40 @@ import React = require("react");
|
|
|
32
32
|
import ReactDOM = require(".");
|
|
33
33
|
|
|
34
34
|
export {};
|
|
35
|
+
|
|
36
|
+
declare module "react" {
|
|
37
|
+
// @enableViewTransition
|
|
38
|
+
interface ViewTransitionPseudoElement extends Animatable {
|
|
39
|
+
getComputedStyle: () => CSSStyleDeclaration;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
interface ViewTransitionInstance {
|
|
43
|
+
group: ViewTransitionPseudoElement;
|
|
44
|
+
imagePair: ViewTransitionPseudoElement;
|
|
45
|
+
old: ViewTransitionPseudoElement;
|
|
46
|
+
new: ViewTransitionPseudoElement;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// @enableFragmentRefs
|
|
50
|
+
interface FragmentInstance {
|
|
51
|
+
blur: () => void;
|
|
52
|
+
focus: (focusOptions?: FocusOptions | undefined) => void;
|
|
53
|
+
focusLast: (focusOptions?: FocusOptions | undefined) => void;
|
|
54
|
+
observeUsing(observer: IntersectionObserver | ResizeObserver): void;
|
|
55
|
+
unobserveUsing(observer: IntersectionObserver | ResizeObserver): void;
|
|
56
|
+
getClientRects(): Array<DOMRect>;
|
|
57
|
+
getRootNode(getRootNodeOptions?: GetRootNodeOptions | undefined): Document | ShadowRoot | FragmentInstance;
|
|
58
|
+
addEventListener(
|
|
59
|
+
type: string,
|
|
60
|
+
listener: EventListener,
|
|
61
|
+
optionsOrUseCapture?: Parameters<Element["addEventListener"]>[2],
|
|
62
|
+
): void;
|
|
63
|
+
removeEventListener(
|
|
64
|
+
type: string,
|
|
65
|
+
listener: EventListener,
|
|
66
|
+
optionsOrUseCapture?: Parameters<Element["removeEventListener"]>[2],
|
|
67
|
+
): void;
|
|
68
|
+
dispatchEvent(event: Event): boolean;
|
|
69
|
+
scrollIntoView(alignToTop?: boolean): void;
|
|
70
|
+
}
|
|
71
|
+
}
|
react-dom/experimental.d.ts
CHANGED
|
@@ -39,41 +39,8 @@ declare module "." {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
declare module "react" {
|
|
42
|
-
interface ViewTransitionPseudoElement extends Animatable {
|
|
43
|
-
getComputedStyle: () => CSSStyleDeclaration;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
interface ViewTransitionInstance {
|
|
47
|
-
group: ViewTransitionPseudoElement;
|
|
48
|
-
imagePair: ViewTransitionPseudoElement;
|
|
49
|
-
old: ViewTransitionPseudoElement;
|
|
50
|
-
new: ViewTransitionPseudoElement;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
42
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
54
43
|
interface GestureProvider extends AnimationTimeline {}
|
|
55
|
-
|
|
56
|
-
// @enableFragmentRefs
|
|
57
|
-
interface FragmentInstance {
|
|
58
|
-
blur: () => void;
|
|
59
|
-
focus: (focusOptions?: FocusOptions | undefined) => void;
|
|
60
|
-
focusLast: (focusOptions?: FocusOptions | undefined) => void;
|
|
61
|
-
observeUsing(observer: IntersectionObserver | ResizeObserver): void;
|
|
62
|
-
unobserveUsing(observer: IntersectionObserver | ResizeObserver): void;
|
|
63
|
-
getClientRects(): Array<DOMRect>;
|
|
64
|
-
getRootNode(getRootNodeOptions?: GetRootNodeOptions | undefined): Document | ShadowRoot | FragmentInstance;
|
|
65
|
-
addEventListener(
|
|
66
|
-
type: string,
|
|
67
|
-
listener: EventListener,
|
|
68
|
-
optionsOrUseCapture?: Parameters<Element["addEventListener"]>[2],
|
|
69
|
-
): void;
|
|
70
|
-
removeEventListener(
|
|
71
|
-
type: string,
|
|
72
|
-
listener: EventListener,
|
|
73
|
-
optionsOrUseCapture?: Parameters<Element["removeEventListener"]>[2],
|
|
74
|
-
): void;
|
|
75
|
-
experimental_scrollIntoView(alignToTop?: boolean): void;
|
|
76
|
-
}
|
|
77
44
|
}
|
|
78
45
|
|
|
79
46
|
declare module "./client" {
|
react-dom/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/react-dom",
|
|
3
|
-
"version": "19.2.
|
|
3
|
+
"version": "19.2.2",
|
|
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",
|
|
@@ -123,6 +123,6 @@
|
|
|
123
123
|
"peerDependencies": {
|
|
124
124
|
"@types/react": "^19.2.0"
|
|
125
125
|
},
|
|
126
|
-
"typesPublisherContentHash": "
|
|
126
|
+
"typesPublisherContentHash": "c53ce9136571cc445e6417c69b996c17d5dd25855b71a504b8202c58d92d3d98",
|
|
127
127
|
"typeScriptVersion": "5.2"
|
|
128
128
|
}
|