Skip to content

Commit

Permalink
use generic type for vnode props in renderToReadableStream/renderToPi…
Browse files Browse the repository at this point in the history
…peableStream, similar to other render functions
  • Loading branch information
f0x52 committed Jan 10, 2025
1 parent 2da38a7 commit 7b081c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/stream-node.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ interface PipeableStream {
pipe: (writable: WritableStream) => void;
}

export function renderToPipeableStream(
vnode: VNode,
export function renderToPipeableStream<P = {}>(
vnode: VNode<P>,
options: RenderToPipeableStreamOptions,
context?: any
): PipeableStream;
4 changes: 2 additions & 2 deletions src/stream.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ interface RenderStream extends ReadableStream<Uint8Array> {
allReady: Promise<void>;
}

export function renderToReadableStream(
vnode: VNode,
export function renderToReadableStream<P = {}>(
vnode: VNode<P>,
context?: any
): RenderStream;

0 comments on commit 7b081c5

Please sign in to comment.