Skip to content

Commit c91d57f

Browse files
committed
return string from onError in downstream type signatures
1 parent 1c6fefb commit c91d57f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type Options = {|
3232
bootstrapModules?: Array<string>,
3333
progressiveChunkSize?: number,
3434
signal?: AbortSignal,
35-
onError?: (error: mixed) => void,
35+
onError?: (error: mixed) => ?string,
3636
|};
3737

3838
// TODO: Move to sub-classing ReadableStream.

packages/react-noop-renderer/src/ReactNoopServer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ type Options = {
253253
progressiveChunkSize?: number,
254254
onShellReady?: () => void,
255255
onAllReady?: () => void,
256-
onError?: (error: mixed) => void,
256+
onError?: (error: mixed) => ?string,
257257
};
258258

259259
function render(children: React$Element<any>, options?: Options): Destination {

0 commit comments

Comments
 (0)