Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/react-dom/src/server/ReactDOMFizzServerNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type Options = {|
onError?: (error: mixed) => void,
|};

type Controls = {|
type PipeableStream = {|
// Cancel any pending I/O and put anything remaining into
// client rendered mode.
abort(): void,
Expand Down Expand Up @@ -76,7 +76,7 @@ function createRequestImpl(children: ReactNodeList, options: void | Options) {
function renderToPipeableStream(
children: ReactNodeList,
options?: Options,
): Controls {
): PipeableStream {
const request = createRequestImpl(children, options);
let hasStartedFlowing = false;
startWork(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type Options = {
onError?: (error: mixed) => void,
};

type Controls = {|
type PipeableStream = {|
pipe<T: Writable>(destination: T): T,
|};

Expand All @@ -35,7 +35,7 @@ function renderToPipeableStream(
webpackMap: BundlerConfig,
options?: Options,
context?: Array<[string, ServerContextJSONValue]>,
): Controls {
): PipeableStream {
const request = createRequest(
model,
webpackMap,
Expand Down