UNPKG

next-turnstile

Version:

Cloudflare Turnstile integration for Next.js applications

14 lines (13 loc) 428 B
import React from "react"; import { TurnstileProps } from "../types"; declare global { interface Window { turnstile: { render: (container: string | HTMLElement, options: any) => string; reset: (widgetId: string) => void; remove: (widgetId: string) => void; }; onloadTurnstileCallback?: () => void; } } export declare const Turnstile: React.FC<TurnstileProps>;