-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.d.ts
40 lines (33 loc) · 935 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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; }
}