@types/react-dom 16.9.16 → 16.9.18

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.
@@ -8,7 +8,7 @@ This package contains type definitions for React (react-dom) (https://reactjs.or
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom/v16.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 12 May 2022 19:01:46 GMT
11
+ * Last updated: Wed, 15 Feb 2023 00:32:44 GMT
12
12
  * Dependencies: [@types/react](https://npmjs.com/package/@types/react)
13
13
  * Global values: `ReactDOM`, `ReactDOMServer`
14
14
 
@@ -34,9 +34,8 @@ export const hydrate: Renderer;
34
34
  export function flushSync<R>(fn: () => R): R;
35
35
  export function flushSync<A, R>(fn: (a: A) => R, a: A): R;
36
36
 
37
- export function unstable_batchedUpdates<A, B>(callback: (a: A, b: B) => any, a: A, b: B): void;
38
- export function unstable_batchedUpdates<A>(callback: (a: A) => any, a: A): void;
39
- export function unstable_batchedUpdates(callback: () => any): void;
37
+ export function unstable_batchedUpdates<A, R>(callback: (a: A) => R, a: A): R;
38
+ export function unstable_batchedUpdates<R>(callback: () => R): R;
40
39
 
41
40
  export function unstable_renderSubtreeIntoContainer<T extends Element>(
42
41
  parentComponent: Component<any>,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react-dom",
3
- "version": "16.9.16",
3
+ "version": "16.9.18",
4
4
  "description": "TypeScript definitions for React (react-dom)",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom",
6
6
  "license": "MIT",
@@ -49,6 +49,6 @@
49
49
  "dependencies": {
50
50
  "@types/react": "^16"
51
51
  },
52
- "typesPublisherContentHash": "44b6aa6b7c9db808a9915458bb6c2f001bcd7b1ff60d031dc0d33c9c6c4991c2",
53
- "typeScriptVersion": "3.9"
52
+ "typesPublisherContentHash": "b229ad33a419884f004fd4e1823e41bae30bd462a08c2374cb4a779fd45ff142",
53
+ "typeScriptVersion": "4.2"
54
54
  }
@@ -23,6 +23,8 @@ export interface OptionalEventProperties {
23
23
  type?: string | undefined;
24
24
  }
25
25
 
26
+ export type ModifierKey = "Alt" | "AltGraph" | "CapsLock" | "Control" | "Fn" | "FnLock" | "Hyper" | "Meta" | "NumLock" | "ScrollLock" | "Shift" | "Super" | "Symbol" | "SymbolLock";
27
+
26
28
  export interface SyntheticEventData extends OptionalEventProperties {
27
29
  altKey?: boolean | undefined;
28
30
  button?: number | undefined;
@@ -38,7 +40,7 @@ export interface SyntheticEventData extends OptionalEventProperties {
38
40
  deltaY?: number | undefined;
39
41
  deltaZ?: number | undefined;
40
42
  detail?: number | undefined;
41
- getModifierState?(key: string): boolean;
43
+ getModifierState?(key: ModifierKey): boolean;
42
44
  key?: string | undefined;
43
45
  keyCode?: number | undefined;
44
46
  locale?: string | undefined;