@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.
11 lines (10 loc) • 414 B
TypeScript
import type { Dispatch, StateUpdater } from 'preact/hooks';
type Serializer<T> = (object: T | undefined) => string;
type Parser<T> = (val: string) => T | undefined;
type Options<T> = Partial<{
serializer: Serializer<T>;
parser: Parser<T>;
syncData: boolean;
}>;
export declare const useLocalStorage: <T>(key: string, defaultValue: T, options?: Options<T>) => [T, Dispatch<StateUpdater<T>>];
export {};