forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
recaptcha.d.ts
39 lines (36 loc) · 1.05 KB
/
recaptcha.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
// Type definitions for Google Recaptcha
// Project: https://www.google.com/recaptcha
// Definitions by: Brent Jenkins <https://github.com/brentj73>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare class Recaptcha {
constructor();
static reload(): void;
static switch_type(newtype: string): void;
static showhelp(): void;
static get_challenge(): string;
static get_response(): string;
static focus_response_field(): void;
static create(public_key: string, element: string, options: RecaptchaOptions): void;
static destroy(): void;
}
interface RecaptchaOptions {
tabindex?: number;
theme?: string;
callback?: Function;
lang?: string;
custom_theme_widget?: string;
custom_translations?: CustomTranslations;
}
interface CustomTranslations {
visual_challenge?: string;
audio_challenge?: string;
refresh_btn?: string;
instructions_visual?: string;
instructions_audio?: string;
help_btn?: string;
play_again?: string;
cant_hear_this?: string;
incorrect_try_again?: string;
image_alt_text?: string;
privacy_and_terms?: string;
}