UNPKG

ngx-turnstile

Version:

Angular component for Cloudflare Turnstile

28 lines (27 loc) 978 B
export interface TurnstileOptions { sitekey: string; action?: string; cData?: string; callback?: (token: string) => void; 'error-callback'?: (errorCode: string) => boolean; 'expired-callback'?: () => void; 'before-interactive-callback'?: () => void; 'after-interactive-callback'?: () => void; 'unsupported-callback'?: () => void; 'timeout-callback'?: () => void; theme?: 'light' | 'dark' | 'auto'; language?: string; tabindex?: number; appearance?: 'always' | 'execute' | 'interaction-only'; execution?: 'render' | 'execute'; retry?: 'never' | 'auto'; 'retry-interval'?: number; 'refresh-expired'?: 'auto' | 'manual' | 'never'; 'refresh-timeout'?: 'auto' | 'manual' | 'never'; size?: 'normal' | 'flexible' | 'compact'; 'response-field'?: boolean; 'response-field-name'?: string; 'feedback-enabled'?: boolean; 'offlabel-show-privacy'?: boolean; 'offlabel-show-help'?: boolean; }