UNPKG

yodlee-react-hook

Version:
41 lines (33 loc) 935 B
export type UserExperienceFlowType = 'Aggregation' | 'Verification' | 'Aggregation plus Verification'; export type TokenEnumType = 'AccessToken' | 'JwtToken'; export interface TokenType { tokenType: TokenEnumType; tokenValue: string; } export interface FastLinkOptionsType { fastLinkURL: string; token?: TokenType; userExperienceFlow?: UserExperienceFlowType; } export interface YodleeHookPropsType { containerId: string; createScriptTag?: boolean; fastLinkOptions: FastLinkOptionsType; onSuccess?: (args: any) => void; onError?: (args: any) => void; onExit?: (args: any) => void; onEvent?: (args: any) => void; } export interface YodleeHookReturnType { init: (token?: TokenType) => void; data: any; error: any; ready: boolean; active: boolean; } export interface YodleeHookType { (props: YodleeHookPropsType): YodleeHookReturnType; } declare global { interface Window { fastlink: any; } }