Skip to content

Commit ac0b317

Browse files
committed
fix last type errors
1 parent d5588de commit ac0b317

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/renderHookToSnapshotStream.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ export async function renderHookToSnapshotStream<ReturnValue, Props = void>(
7171
renderOptions,
7272
)
7373

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

7879
return {

0 commit comments

Comments
 (0)