recaptcha.ts 348 B

1234567891011
  1. export interface ReCaptchaConfig {
  2. callback: (token: string) => void
  3. 'error-callback'?: () => void
  4. 'expired-callback'?: () => void
  5. }
  6. export interface ReCaptchaInstance {
  7. render: (element: HTMLElement | string, config: ReCaptchaConfig) => string
  8. execute: (recaptchaId: string) => Promise<string>
  9. reset: (recaptchaId?: string) => void
  10. }