mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
fix: load turnstile script in layout and explicitly render
chore: npm run format + lint
This commit is contained in:
Vendored
+18
@@ -8,6 +8,24 @@ declare global {
|
||||
// interface PageState {}
|
||||
// interface Platform {}
|
||||
}
|
||||
interface Window {
|
||||
turnstile?: {
|
||||
getResponse: () => string | null;
|
||||
render: (container: string | HTMLElement, options?: Record<string, unknown>) => string;
|
||||
reset: (widgetId?: string) => void;
|
||||
remove: (widgetId?: string) => void;
|
||||
};
|
||||
turnstileLoaded?: () => void;
|
||||
}
|
||||
var turnstile:
|
||||
| {
|
||||
getResponse: () => string | null;
|
||||
render: (container: string | HTMLElement, options?: Record<string, unknown>) => string;
|
||||
reset: (widgetId?: string) => void;
|
||||
remove: (widgetId?: string) => void;
|
||||
}
|
||||
| undefined;
|
||||
var turnstileLoaded: (() => void) | undefined;
|
||||
}
|
||||
|
||||
export {};
|
||||
|
||||
Reference in New Issue
Block a user