Skip to content

Commit

Permalink
Fix Fizz exported types (#21596)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Jun 1, 2021
1 parent 28625c6 commit 8f6163c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/react-dom/src/server/ReactDOMFizzServerBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ import {
createRootFormatContext,
} from './ReactDOMServerFormatConfig';

type Options = {
type Options = {|
identifierPrefix?: string,
namespaceURI?: string,
progressiveChunkSize?: number,
signal?: AbortSignal,
onReadyToStream?: () => void,
onCompleteAll?: () => void,
onError?: (error: mixed) => void,
};
|};

function renderToReadableStream(
children: ReactNodeList,
Expand Down
9 changes: 5 additions & 4 deletions packages/react-dom/src/server/ReactDOMFizzServerNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8f6163c

Please sign in to comment.