diff --git a/.changeset/fifty-fireants-kiss.md b/.changeset/fifty-fireants-kiss.md new file mode 100644 index 00000000..b902cdb2 --- /dev/null +++ b/.changeset/fifty-fireants-kiss.md @@ -0,0 +1,5 @@ +--- +'preact-render-to-string': patch +--- + +Fix incorrect type for renderToPipeableStream diff --git a/src/stream-node.d.ts b/src/stream-node.d.ts index 3e6309fd..5cdc0e53 100644 --- a/src/stream-node.d.ts +++ b/src/stream-node.d.ts @@ -12,7 +12,7 @@ interface PipeableStream { pipe: (writable: WritableStream) => void; } -export function renderToReadableStream( +export function renderToPipeableStream( vnode: VNode, options: RenderToPipeableStreamOptions, context?: any