Files
starface-outlook-sync-addin/node_modules/@fluentui/react-hooks/lib-commonjs/testUtilities.d.ts
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

10 lines
602 B
TypeScript

/**
* Validate that value(s) returned by a hook do not change in identity.
* @param testDescription - Custom test description
* @param useHook - Function to invoke the hook and return an array of return values which
* should not change
* @param useHookAgain - If you want to verify that the return value doesn't change when hook
* parameters change, you can pass this second callback which calls the hook differently.
*/
export declare function validateHookValueNotChanged<TValues extends NonNullable<any>[]>(testDescription: string, useHook: () => TValues, useHookAgain?: () => TValues): void;