mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix Fizz exported types (#21596)
This commit is contained in:
@@ -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
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user