@adyen/kyc-components
Version:
`adyen-kyc-components` provides the required pieces to build an onboarding flow based on a legal entity. To onboard and verify users, you need to create a user interface (UI) to collect user data. To speed up building your integration, Adyen offers onboar
21 lines (20 loc) • 958 B
TypeScript
type VoidFunction = (...args: any) => void;
/**
* Returns a function that will only execute after no further calls have been made for a given time.
*
* **Note: functions returned by this are not suitable for use in components! For that, see {@link useDebouncedCallback}**.
*
* @param func the function to execute
* @param wait the time to wait, in milliseconds
*/
export declare const debounce: <F extends VoidFunction>(func: F, wait: number) => (...args: Parameters<F>) => void;
/**
* Returns a memoized function that will only execute after no further calls have been made for a given time.
*
* Callbacks returned by this method *are* safe to use within components, as their reference will be guaranteed stable.
*
* @param func the function to execute
* @param wait the time to wait, in milliseconds
*/
export declare const useDebouncedCallback: <F extends VoidFunction>(func: F, wait: number) => (...args: Parameters<F>) => void;
export {};