New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@types/react-dom

Package Overview
Dependencies
Maintainers
1
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-dom - npm Package Compare versions

Comparing version
19.2.0
to
19.2.1
+36
-0
react-dom/canary.d.ts

@@ -35,1 +35,37 @@ /* eslint-disable @definitelytyped/no-self-import -- self-imports in module augmentations aren't self-imports */

export {};
declare module "react" {
// @enableViewTransition
interface ViewTransitionPseudoElement extends Animatable {
getComputedStyle: () => CSSStyleDeclaration;
}
interface ViewTransitionInstance {
group: ViewTransitionPseudoElement;
imagePair: ViewTransitionPseudoElement;
old: ViewTransitionPseudoElement;
new: ViewTransitionPseudoElement;
}
// @enableFragmentRefs
interface FragmentInstance {
blur: () => void;
focus: (focusOptions?: FocusOptions | undefined) => void;
focusLast: (focusOptions?: FocusOptions | undefined) => void;
observeUsing(observer: IntersectionObserver | ResizeObserver): void;
unobserveUsing(observer: IntersectionObserver | ResizeObserver): void;
getClientRects(): Array<DOMRect>;
getRootNode(getRootNodeOptions?: GetRootNodeOptions | undefined): Document | ShadowRoot | FragmentInstance;
addEventListener(
type: string,
listener: EventListener,
optionsOrUseCapture?: Parameters<Element["addEventListener"]>[2],
): void;
removeEventListener(
type: string,
listener: EventListener,
optionsOrUseCapture?: Parameters<Element["removeEventListener"]>[2],
): void;
scrollIntoView(alignToTop?: boolean): void;
}
}
+0
-33

@@ -42,37 +42,4 @@ /**

declare module "react" {
interface ViewTransitionPseudoElement extends Animatable {
getComputedStyle: () => CSSStyleDeclaration;
}
interface ViewTransitionInstance {
group: ViewTransitionPseudoElement;
imagePair: ViewTransitionPseudoElement;
old: ViewTransitionPseudoElement;
new: ViewTransitionPseudoElement;
}
// eslint-disable-next-line @typescript-eslint/no-empty-interface
interface GestureProvider extends AnimationTimeline {}
// @enableFragmentRefs
interface FragmentInstance {
blur: () => void;
focus: (focusOptions?: FocusOptions | undefined) => void;
focusLast: (focusOptions?: FocusOptions | undefined) => void;
observeUsing(observer: IntersectionObserver | ResizeObserver): void;
unobserveUsing(observer: IntersectionObserver | ResizeObserver): void;
getClientRects(): Array<DOMRect>;
getRootNode(getRootNodeOptions?: GetRootNodeOptions | undefined): Document | ShadowRoot | FragmentInstance;
addEventListener(
type: string,
listener: EventListener,
optionsOrUseCapture?: Parameters<Element["addEventListener"]>[2],
): void;
removeEventListener(
type: string,
listener: EventListener,
optionsOrUseCapture?: Parameters<Element["removeEventListener"]>[2],
): void;
experimental_scrollIntoView(alignToTop?: boolean): void;
}
}

@@ -79,0 +46,0 @@

+2
-2
{
"name": "@types/react-dom",
"version": "19.2.0",
"version": "19.2.1",
"description": "TypeScript definitions for react-dom",

@@ -126,4 +126,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom",

},
"typesPublisherContentHash": "4a296bd89e24edb236357aa2daf5e5f23648fa3270267dfef1e71cafb2822417",
"typesPublisherContentHash": "68266be9b96ace4d6eb696cfbf2788d803369c334bed806fb83a2414f592d872",
"typeScriptVersion": "5.2"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Wed, 01 Oct 2025 22:02:19 GMT
* Last updated: Tue, 07 Oct 2025 05:34:23 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Peer dependencies: [@types/react](https://npmjs.com/package/@types/react)