@adyen/kyc-components
Version:
This guide assumes that you have already an account with Adyen. A legalEntity needs to be created, and you need to have a `legalEntityId` to instatiate a Component.
4 lines (3 loc) • 298 B
TypeScript
import type { Dispatch, StateUpdater } from 'preact/hooks';
export declare function useDebouncedState<T>(wait: number): [T | undefined, Dispatch<StateUpdater<T | undefined>>];
export declare function useDebouncedState<T>(wait: number, initialState?: T | (() => T)): [T, Dispatch<StateUpdater<T>>];