@samitouri / QOS-React-2 / commits / 8f6163cbed

Fix Fizz exported types (#21596)

Sebastian Markbåge committed Jun 1, 2021 at 13:02 UTC 8f6163cbed64d1eff23b91159d6eef34a2ee9c27
2 files changed +7 -6
packages/react-dom/src/server/ReactDOMFizzServerBrowser.js
+2 -2
@@ -21,7 +21,7 @@ import {
21 createRootFormatContext,
22 } from './ReactDOMServerFormatConfig';
23
24 -type Options = {
24 +type Options = {|
25 identifierPrefix?: string,
26 namespaceURI?: string,
27 progressiveChunkSize?: number,
@@ -29,7 +29,7 @@ type Options = {
29 onReadyToStream?: () => void,
30 onCompleteAll?: () => void,
31 onError?: (error: mixed) => void,
32 -};
32 +|};
33
34 function renderToReadableStream(
35 children: ReactNodeList,
packages/react-dom/src/server/ReactDOMFizzServerNode.js
+5 -4
@@ -26,20 +26,21 @@ function createDrainHandler(destination, request) {
26 return () => startFlowing(request);
27 }
28
29 -type Options = {
29 +type Options = {|
30 identifierPrefix?: string,
31 namespaceURI?: string,
32 progressiveChunkSize?: number,
33 onReadyToStream?: () => void,
34 onCompleteAll?: () => void,
35 onError?: (error: mixed) => void,
36 -};
36 +|};
37
38 -type Controls = {
38 +type Controls = {|
39 // Cancel any pending I/O and put anything remaining into
40 // client rendered mode.
41 abort(): void,
42 -};
42 + startWriting(): void,
43 +|};
44
45 function pipeToNodeWritable(
46 children: ReactNodeList,