From 7871a5145183f205b013238b8442a6bc28f5db89 Mon Sep 17 00:00:00 2001 From: Diana Bergey Date: Sun, 2 Jun 2024 14:32:21 -0400 Subject: [PATCH] Update stream-node.d.ts to fix function name --- .changeset/fifty-fireants-kiss.md | 5 +++++ src/stream-node.d.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/fifty-fireants-kiss.md 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