You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@types/react-dom

Package Overview
Dependencies
1
Maintainers
1
Versions
149
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 18.2.14 to 18.2.17

12

react-dom/canary.d.ts

@@ -131,11 +131,11 @@ /**

function useFormState<State>(
action: (state: State) => Promise<State>,
initialState: State,
action: (state: Awaited<State>) => State | Promise<State>,
initialState: Awaited<State>,
permalink?: string,
): [state: State, dispatch: () => void];
): [state: Awaited<State>, dispatch: () => void];
function useFormState<State, Payload>(
action: (state: State, payload: Payload) => Promise<State>,
initialState: State,
action: (state: Awaited<State>, payload: Payload) => State | Promise<State>,
initialState: Awaited<State>,
permalink?: string,
): [state: State, dispatch: (payload: Payload) => void];
): [state: Awaited<State>, dispatch: (payload: Payload) => void];
}

@@ -142,0 +142,0 @@

@@ -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;
}
{
"name": "@types/react-dom",
"version": "18.2.14",
"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": "a91527c44aa825000d86a4ee5471f4cfc93028a45d97c624bca8ba664455d44e",
"typesPublisherContentHash": "10999f1af5ef34daa32af5a8ea57d6fda5371b0e2892ba6820aa49f96306cf12",
"typeScriptVersion": "4.5"
}

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

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

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

// forward declarations
declare global {
namespace NodeJS {
// tslint:disable-next-line:no-empty-interface
// eslint-disable-next-line @typescript-eslint/no-empty-interface
interface ReadableStream {}
// tslint:disable-next-line:no-empty-interface
// eslint-disable-next-line @typescript-eslint/no-empty-interface
interface WritableStream {}

@@ -14,3 +14,3 @@ }

*/
// tslint:disable-next-line:no-empty-interface
// eslint-disable-next-line @typescript-eslint/no-empty-interface
interface AbortSignal {}

@@ -21,3 +21,3 @@

*/
// tslint:disable-next-line:no-empty-interface
// eslint-disable-next-line @typescript-eslint/no-empty-interface
interface ReadableStream {}

@@ -24,0 +24,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
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc