@types/react-dom 15.5.13 → 15.5.15
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.
react-dom v15.5/README.md
CHANGED
@@ -8,9 +8,9 @@ This package contains type definitions for React (react-dom) (http://facebook.gi
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom/v15.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Thu, 27 Oct 2022 11:32:51 GMT
|
12
12
|
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)
|
13
|
-
* Global values: `ReactDOM`, `
|
13
|
+
* Global values: `ReactDOM`, `ReactDOMServer`
|
14
14
|
|
15
15
|
# Credits
|
16
16
|
These definitions were written by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), [Microsoft](https://microsoft.com), and [MartynasZilinskas](https://github.com/MartynasZilinskas).
|
react-dom v15.5/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react-dom",
|
3
|
-
"version": "15.5.
|
3
|
+
"version": "15.5.15",
|
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",
|
@@ -34,6 +34,6 @@
|
|
34
34
|
"dependencies": {
|
35
35
|
"@types/react": "^15"
|
36
36
|
},
|
37
|
-
"typesPublisherContentHash": "
|
38
|
-
"typeScriptVersion": "
|
37
|
+
"typesPublisherContentHash": "000e4a31c8644142c0b5c22d4a400077b4badf218f604ac8afce1ec1e55f059c",
|
38
|
+
"typeScriptVersion": "4.1"
|
39
39
|
}
|
@@ -22,6 +22,8 @@ export interface OptionalEventProperties {
|
|
22
22
|
type?: string | undefined;
|
23
23
|
}
|
24
24
|
|
25
|
+
export type ModifierKey = "Alt" | "AltGraph" | "CapsLock" | "Control" | "Fn" | "FnLock" | "Hyper" | "Meta" | "NumLock" | "ScrollLock" | "Shift" | "Super" | "Symbol" | "SymbolLock";
|
26
|
+
|
25
27
|
export interface SyntheticEventData extends OptionalEventProperties {
|
26
28
|
altKey?: boolean | undefined;
|
27
29
|
button?: number | undefined;
|
@@ -37,7 +39,7 @@ export interface SyntheticEventData extends OptionalEventProperties {
|
|
37
39
|
deltaY?: number | undefined;
|
38
40
|
deltaZ?: number | undefined;
|
39
41
|
detail?: number | undefined;
|
40
|
-
getModifierState?(key:
|
42
|
+
getModifierState?(key: ModifierKey): boolean;
|
41
43
|
key?: string | undefined;
|
42
44
|
keyCode?: number | undefined;
|
43
45
|
locale?: string | undefined;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { ReactElement } from 'react';
|
2
|
-
|
3
|
-
/**
|
4
|
-
* Render a ReactElement to its initial HTML. This should only be used on the
|
5
|
-
* server.
|
6
|
-
* See https://facebook.github.io/react/docs/react-dom-stream.html#rendertostream
|
7
|
-
*/
|
8
|
-
export function renderToStream(element: ReactElement): any;
|
9
|
-
|
10
|
-
/**
|
11
|
-
* Similar to renderToStream, except this doesn't create extra DOM attributes
|
12
|
-
* such as data-react-id that React uses internally.
|
13
|
-
* See https://facebook.github.io/react/docs/react-dom-stream.html#rendertostaticstream
|
14
|
-
*/
|
15
|
-
export function renderToStaticStream(element: ReactElement): any;
|
16
|
-
export const version: string;
|
17
|
-
|
18
|
-
export as namespace ReactDOMNodeStream;
|