Socket
Socket
Sign inDemoInstall

@types/react-dom

Package Overview
Dependencies
3
Maintainers
1
Versions
149
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 18.2.16 to 18.2.17

3

react-dom/index.d.ts

@@ -56,2 +56,3 @@ // NOTE: Users of the `experimental` builds of React should add a reference

callback?: (component?: Component<P, ComponentState> | Element) => any,
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
): Component<P, ComponentState> | Element | void;

@@ -99,2 +100,3 @@

callback?: () => void,
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
): Component<P, ComponentState> | Element | void;

@@ -106,3 +108,4 @@

callback?: () => void,
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
): Component<any, ComponentState> | Element | void;
}

4

react-dom/package.json
{
"name": "@types/react-dom",
"version": "18.2.16",
"version": "18.2.17",
"description": "TypeScript definitions for react-dom",

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

},
"typesPublisherContentHash": "92e8a0c4e89d1016692884d247bc1cef054510a6ce006161bda93a48c509af2c",
"typesPublisherContentHash": "10999f1af5ef34daa32af5a8ea57d6fda5371b0e2892ba6820aa49f96306cf12",
"typeScriptVersion": "4.5"
}

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

### Additional Details
* Last updated: Mon, 20 Nov 2023 23:36:24 GMT
* Last updated: Wed, 22 Nov 2023 00:24:48 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)

@@ -14,0 +14,0 @@

@@ -361,3 +361,3 @@ import {

declare const UNDEFINED_VOID_ONLY: unique symbol;
// tslint:disable-next-line: void-return
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };

@@ -364,0 +364,0 @@ // While act does always return Thenable, if a void function is passed, we pretend the return value is also void to not trigger dangling Promise lint rules.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc