Skip to content

Commit

Permalink
fix last type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Jan 16, 2025
1 parent d5588de commit ac0b317
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/renderHookToSnapshotStream.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ export async function renderHookToSnapshotStream<ReturnValue, Props = void>(
renderOptions,
)

function rerender(rerenderCallbackProps: Props) {
return baseRerender(<HookComponent arg={rerenderCallbackProps} />)
function rerender(rerenderCallbackProps: VoidOptionalArg<Props>) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
return baseRerender(<HookComponent arg={rerenderCallbackProps as any} />)
}

return {
Expand Down

0 comments on commit ac0b317

Please sign in to comment.