Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Merge pull request #2843 from Shopify/fix-tsc-error
Browse files Browse the repository at this point in the history
Try fix tsc error on assigning string
  • Loading branch information
jesstelford authored Jan 8, 2025
2 parents cc31a44 + 7fc9a4e commit 73c7dd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-html/src/server/tests/stream.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('stream', () => {

function streamResponse(stream: NodeJS.ReadableStream) {
return new Promise<string>((resolve) => {
let response: string;
let response = '';

stream.on('data', (data) => (response += data));
stream.on('end', () => resolve(response));
Expand Down
2 changes: 1 addition & 1 deletion packages/react-server/src/render/tests/render.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ describe('createRender', () => {

function readStream(stream: NodeJS.ReadableStream) {
return new Promise<string>((resolve) => {
let response: string;
let response = '';

stream.on('data', (data) => (response += data));
stream.on('end', () => resolve(response));
Expand Down

0 comments on commit 73c7dd1

Please sign in to comment.