Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/react-dom

Package Overview
Dependencies
Maintainers
1
Versions
150
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 18.0.6 to 18.2.6

react-dom/canary.d.ts

9

react-dom/client.d.ts

@@ -13,3 +13,3 @@ /**

identifierPrefix?: string;
onRecoverableError?: (error: unknown) => void;
onRecoverableError?: (error: unknown, errorInfo: ErrorInfo) => void;
}

@@ -22,5 +22,10 @@

identifierPrefix?: string;
onRecoverableError?: (error: unknown) => void;
onRecoverableError?: (error: unknown, errorInfo: ErrorInfo) => void;
}
export interface ErrorInfo {
digest?: string;
componentStack?: string;
}
export interface Root {

@@ -27,0 +32,0 @@ render(children: React.ReactNode): void;

@@ -31,6 +31,24 @@ /**

import React = require('react');
import ReactDOM = require('./next');
import ReactDOM = require('./canary');
export {};
declare module '.' {}
declare module '.' {
interface FormStatusNotPending {
pending: false;
data: null;
method: null;
action: null;
}
interface FormStatusPending {
pending: true;
data: FormData;
method: string;
action: string | ((formData: FormData) => void | Promise<void>);
}
type FormStatus = FormStatusPending | FormStatusNotPending;
function experimental_useFormStatus(): FormStatus;
}

@@ -1,2 +0,2 @@

// Type definitions for React (react-dom) 18.0
// Type definitions for React (react-dom) 18.2
// Project: https://reactjs.org

@@ -37,5 +37,4 @@ // Definitions by: Asana <https://asana.com>

export function unstable_batchedUpdates<A, B>(callback: (a: A, b: B) => any, a: A, b: B): void;
export function unstable_batchedUpdates<A>(callback: (a: A) => any, a: A): void;
export function unstable_batchedUpdates(callback: () => any): void;
export function unstable_batchedUpdates<A, R>(callback: (a: A) => R, a: A): R;
export function unstable_batchedUpdates<R>(callback: () => R): R;

@@ -42,0 +41,0 @@ export function unstable_renderSubtreeIntoContainer<T extends Element>(

{
"name": "@types/react-dom",
"version": "18.0.6",
"version": "18.2.6",
"description": "TypeScript definitions for React (react-dom)",

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

},
"typesPublisherContentHash": "b61c300391418b2c9a3fe5287604ff6412998c168f8c07b1f9559e2943784b22",
"typeScriptVersion": "4.0",
"typesPublisherContentHash": "f17619716ec62b2f4f9d4541bc4e5fe0365b64cd6abc76511a375496bf09747a",
"typeScriptVersion": "4.3",
"exports": {

@@ -66,5 +66,5 @@ ".": {

},
"./next": {
"./canary": {
"types": {
"default": "./next.d.ts"
"default": "./canary.d.ts"
}

@@ -71,0 +71,0 @@ },

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

### Additional Details
* Last updated: Tue, 05 Jul 2022 08:02:21 GMT
* Last updated: Mon, 19 Jun 2023 12:32:43 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)

@@ -14,0 +14,0 @@ * Global values: `ReactDOM`, `ReactDOMServer`

@@ -25,2 +25,3 @@ // forward declarations

import { ReactElement, ReactNode } from 'react';
import { ErrorInfo } from './client';

@@ -38,8 +39,8 @@ export interface RenderToPipeableStreamOptions {

onAllReady?: () => void;
onError?: (error: unknown) => void;
onError?: (error: unknown, errorInfo: ErrorInfo) => string | void;
}
export interface PipeableStream {
abort(): void;
pipe<Writable extends NodeJS.WritableStream>(destination: Writable): Writable;
abort: () => void;
pipe: <Writable extends NodeJS.WritableStream>(destination: Writable) => Writable;
}

@@ -102,3 +103,3 @@

signal?: AbortSignal;
onError?: (error: unknown) => void;
onError?: (error: unknown, errorInfo: ErrorInfo) => string | void;
}

@@ -105,0 +106,0 @@

@@ -27,2 +27,4 @@ import {

export type ModifierKey = "Alt" | "AltGraph" | "CapsLock" | "Control" | "Fn" | "FnLock" | "Hyper" | "Meta" | "NumLock" | "ScrollLock" | "Shift" | "Super" | "Symbol" | "SymbolLock";
export interface SyntheticEventData extends OptionalEventProperties {

@@ -43,3 +45,3 @@ altKey?: boolean | undefined;

detail?: number | undefined;
getModifierState?(key: string): boolean;
getModifierState?(key: ModifierKey): boolean;
key?: string | undefined;

@@ -85,3 +87,3 @@ keyCode?: number | undefined;

*/
export namespace Simulate {
export namespace Simulate {
const abort: EventSimulator;

@@ -92,2 +94,3 @@ const animationEnd: EventSimulator;

const blur: EventSimulator;
const cancel: EventSimulator;
const canPlay: EventSimulator;

@@ -97,2 +100,3 @@ const canPlayThrough: EventSimulator;

const click: EventSimulator;
const close: EventSimulator;
const compositionEnd: EventSimulator;

@@ -104,2 +108,3 @@ const compositionStart: EventSimulator;

const cut: EventSimulator;
const auxClick: EventSimulator;
const doubleClick: EventSimulator;

@@ -141,7 +146,21 @@ const drag: EventSimulator;

const progress: EventSimulator;
const pointerCancel: EventSimulator;
const pointerDown: EventSimulator;
const pointerUp: EventSimulator;
const pointerMove: EventSimulator;
const pointerOut: EventSimulator;
const pointerOver: EventSimulator;
const pointerEnter: EventSimulator;
const pointerLeave: EventSimulator;
const gotPointerCapture: EventSimulator;
const lostPointerCapture: EventSimulator;
const rateChange: EventSimulator;
const reset: EventSimulator;
const resize: EventSimulator;
const scroll: EventSimulator;
const toggle: EventSimulator;
const seeked: EventSimulator;
const seeking: EventSimulator;
const select: EventSimulator;
const beforeInput: EventSimulator;
const stalled: EventSimulator;

@@ -306,4 +325,5 @@ const submit: EventSimulator;

type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
export function act(callback: () => Promise<void>): Promise<undefined>;
// 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.
export function act(callback: () => VoidOrUndefinedOnly): void;
export function act<T>(callback: () => T | Promise<T>): Promise<T>;

@@ -310,0 +330,0 @@ // Intentionally doesn't extend PromiseLike<never>.

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc