diff options
Diffstat (limited to 'packages/web-util')
-rw-r--r-- | packages/web-util/src/tests/hook.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/web-util/src/tests/hook.ts b/packages/web-util/src/tests/hook.ts index f5bebbd6d..a4938f3f9 100644 --- a/packages/web-util/src/tests/hook.ts +++ b/packages/web-util/src/tests/hook.ts @@ -246,7 +246,7 @@ interface HookTestResultError { export async function hookBehaveLikeThis<T extends object, PropsType>( hookFunction: (p: PropsType) => RecursiveState<T>, props: PropsType, - checks: Array<(state: T) => void>, + checks: Array<(state: Exclude<T, VoidFunction>) => void>, Context?: ({ children }: { children: any }) => VNode | null, ): Promise<HookTestResult> { const { pullLastResultOrThrow, waitForStateUpdate, assertNoPendingUpdate } = |