diff --git a/.changeset/little-rocks-doubt.md b/.changeset/little-rocks-doubt.md new file mode 100644 index 00000000..2b41c748 --- /dev/null +++ b/.changeset/little-rocks-doubt.md @@ -0,0 +1,5 @@ +--- +'preact-render-to-string': patch +--- + +Ensure the renderToStream types of `/stream` and `/stream-node` accept a generic for the props of the passed in VNode diff --git a/src/stream-node.d.ts b/src/stream-node.d.ts index 5cdc0e53..41854ae2 100644 --- a/src/stream-node.d.ts +++ b/src/stream-node.d.ts @@ -12,8 +12,8 @@ interface PipeableStream { pipe: (writable: WritableStream) => void; } -export function renderToPipeableStream( - vnode: VNode, +export function renderToPipeableStream
( + vnode: VNode
,
options: RenderToPipeableStreamOptions,
context?: any
): PipeableStream;
diff --git a/src/stream.d.ts b/src/stream.d.ts
index c786d965..1ab9aa52 100644
--- a/src/stream.d.ts
+++ b/src/stream.d.ts
@@ -4,7 +4,7 @@ interface RenderStream extends ReadableStream (
+ vnode: VNode ,
context?: any
): RenderStream;