Skip to content

Conversation

@jerelmiller
Copy link
Collaborator

While creating a helper to render suspense hooks, I encountered a TypeScript error when trying to return takeRender from the helper (source):

Return type of exported function has or is using name 'Render' from external module "/home/circleci/project/node_modules/@testing-library/react-render-stream/dist/pure" but cannot be named.

This fixes the TypeScript issue as demonstrated in the patch.

@jerelmiller jerelmiller requested a review from phryneas October 30, 2025 22:44
@jerelmiller jerelmiller changed the title fix: Export Render type from library fix: Export the Render type library Oct 30, 2025
@jerelmiller jerelmiller changed the title fix: Export the Render type library fix: Export the Render type Oct 30, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 30, 2025

undefined https://pkg.pr.new/testing-library/react-render-stream-testing-library/@testing-library/react-render-stream@15

commit: 1b78067

@phryneas phryneas merged commit c9dbfdf into main Oct 31, 2025
8 checks passed
@phryneas phryneas deleted the jerel/fix-render-export branch October 31, 2025 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants