@sumsub/fisherman
Version:
The Sumsub Fisherman is a powerful tool that helps developers integrate fraud detection capabilities into their applications. With Fisherman, you can easily identify and prevent fraudulent activities within your system, providing a safer and more secure e
14 lines (13 loc) • 773 B
TypeScript
export type FishermanErrorType = 'InvalidToken' | 'NoToken' | 'UpdateTokenRetriesLimitReached' | 'NetworkError' | 'FpDisabled' | 'FpClientTimeout' | 'FpRateLimit' | 'OtherFpError' | 'FpInitError' | 'LoadFpConfigError' | 'SimulationError';
export type FishermanError = {
type: FishermanErrorType;
message?: string;
};
export type ErrorHandlerFn = (error: FishermanError) => void;
export declare const TokenError: FishermanError;
export declare const NoTokenError: FishermanError;
export declare const UpdateTokenRetriesLimitError: FishermanError;
export declare const NetworkError: FishermanError;
export declare const FpDisabledError: FishermanError;
export declare const FpClientTimeoutError: FishermanError;
export declare const FpRateLimitError: FishermanError;