Skip to content

Commit 8f6163c

Browse files
authored
Fix Fizz exported types (#21596)
1 parent 28625c6 commit 8f6163c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

packages/react-dom/src/server/ReactDOMFizzServerBrowser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ import {
2121
createRootFormatContext,
2222
} from './ReactDOMServerFormatConfig';
2323

24-
type Options = {
24+
type Options = {|
2525
identifierPrefix?: string,
2626
namespaceURI?: string,
2727
progressiveChunkSize?: number,
2828
signal?: AbortSignal,
2929
onReadyToStream?: () => void,
3030
onCompleteAll?: () => void,
3131
onError?: (error: mixed) => void,
32-
};
32+
|};
3333

3434
function renderToReadableStream(
3535
children: ReactNodeList,

packages/react-dom/src/server/ReactDOMFizzServerNode.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,21 @@ function createDrainHandler(destination, request) {
2626
return () => startFlowing(request);
2727
}
2828

29-
type Options = {
29+
type Options = {|
3030
identifierPrefix?: string,
3131
namespaceURI?: string,
3232
progressiveChunkSize?: number,
3333
onReadyToStream?: () => void,
3434
onCompleteAll?: () => void,
3535
onError?: (error: mixed) => void,
36-
};
36+
|};
3737

38-
type Controls = {
38+
type Controls = {|
3939
// Cancel any pending I/O and put anything remaining into
4040
// client rendered mode.
4141
abort(): void,
42-
};
42+
startWriting(): void,
43+
|};
4344

4445
function pipeToNodeWritable(
4546
children: ReactNodeList,

0 commit comments

Comments
 (0)