preactjs / preact-render-to-string

📄 Universal rendering for Preact: render JSX and Preact components to HTML.
http://npm.im/preact-render-to-string
MIT License
653 stars 92 forks source link

fix: Add types for renderStream & pipeableStream #367

Closed rschristian closed 6 months ago

rschristian commented 6 months ago

Adds hand-written types for stream & node-stream exports. While Microbundle can generate types, it seems the types it generates for the main & jsx entries are a bit wonky and don't get copied over correctly, so I chose to simply match the existing practice and write some definitions myself. They're simple enough anyways.

I also added check-export-map, as we have in core, to catch this sort of issue in the future.

changeset-bot[bot] commented 6 months ago

🦋 Changeset detected

Latest commit: 8c7e08f121d4fb5967c0fc63b6aafd45e1613162

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ----------------------- | ----- | | preact-render-to-string | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR