Skip to content

Commit

Permalink
We need to cast through any because Thenable doesn't support unknown …
Browse files Browse the repository at this point in the history
…strings
  • Loading branch information
sebmarkbage committed Sep 15, 2022
1 parent 6904319 commit 781ae5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-client/src/ReactFlightClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function readChunk<T>(chunk: SomeChunk<T>): T {

export function getRoot<T>(response: Response): Thenable<T> {
const chunk = getChunk(response, 0);
return chunk;
return (chunk: any);
}

function createPendingChunk<T>(response: Response): PendingChunk<T> {
Expand Down

0 comments on commit 781ae5d

Please sign in to comment.