recaptcha-v3-enterprise
Version:
A simple and easy to use reCAPTCHA Enterprise (v3 only) library for the browser.
24 lines (23 loc) • 688 B
TypeScript
declare global {
const grecaptcha: IReCaptchaInstance;
interface Window {
grecaptcha: IReCaptchaInstance;
}
}
export interface IReCaptchaInstance {
enterprise: {
ready(callback: () => void): void;
execute(siteKey: string, options: IExecuteOptions): Promise<string>;
render(container: string | Element, parameters: IRenderParameters): string;
render(parameters: IRenderParameters): string;
};
}
export declare interface IExecuteOptions {
action?: string;
}
export declare interface IRenderParameters {
sitekey: string;
badge?: 'bottomright' | 'bottomleft' | 'inline';
size?: 'invisible';
tabindex?: number;
}