Fix Fizz exported types (#21596)

This commit is contained in:
Sebastian Markbåge
2021-06-01 10:02:04 -07:00
committed by GitHub
parent 28625c6f45
commit 8f6163cbed
2 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ import {
createRootFormatContext,
} from './ReactDOMServerFormatConfig';
type Options = {
type Options = {|
identifierPrefix?: string,
namespaceURI?: string,
progressiveChunkSize?: number,
@@ -29,7 +29,7 @@ type Options = {
onReadyToStream?: () => void,
onCompleteAll?: () => void,
onError?: (error: mixed) => void,
};
|};
function renderToReadableStream(
children: ReactNodeList,
+5 -4
View File
@@ -26,20 +26,21 @@ function createDrainHandler(destination, request) {
return () => startFlowing(request);
}
type Options = {
type Options = {|
identifierPrefix?: string,
namespaceURI?: string,
progressiveChunkSize?: number,
onReadyToStream?: () => void,
onCompleteAll?: () => void,
onError?: (error: mixed) => void,
};
|};
type Controls = {
type Controls = {|
// Cancel any pending I/O and put anything remaining into
// client rendered mode.
abort(): void,
};
startWriting(): void,
|};
function pipeToNodeWritable(
children: ReactNodeList,