@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
15 lines (14 loc) • 755 B
TypeScript
import type { UseMutationOptions, UseQueryOptions } from '@tanstack/react-query';
type MandatoryQueryArgs = 'queryKey' | 'queryFn';
type MandatoryMutationArgs = 'mutationFn';
/**
* useQuery params we do NOT want in our options.
* <ResponseType> is the type of the Response received,
* provide the generic to QueryOptions and nowhere else, it will be infered
*/
export type QueryOptions<ResponseType> = Omit<UseQueryOptions<ResponseType>, MandatoryQueryArgs>;
/**
* useMutation params we do NOT want in our options.
*/
export type MutationOptions<ResponseType = unknown, ErrorType = Error, VariablesType = void, ContextType = unknown> = Omit<UseMutationOptions<ResponseType, ErrorType, VariablesType, ContextType>, MandatoryMutationArgs>;
export {};