aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Skoland <davidskoland@gmail.com>2026-02-27 17:06:21 +0100
committerDavid Skoland <davidskoland@gmail.com>2026-02-27 17:06:21 +0100
commita86f133de7d0e3279b10efa3fe2368509e482def (patch)
treebef464b0d2cab91041e4d949535b0ad773809822
parent0fb9f2bb4f1b34ba55cdc06a83dc06a4a5754f97 (diff)
Add Window interface declarations to fix TypeScript errors
Extend the global Window interface with custom properties assigned at runtime (e.g. pickEmotion, resizeChatbox, area_click) to resolve 18 TS2339/TS2551 errors. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
-rw-r--r--webAO/global.d.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/webAO/global.d.ts b/webAO/global.d.ts
new file mode 100644
index 0000000..8463106
--- /dev/null
+++ b/webAO/global.d.ts
@@ -0,0 +1,23 @@
+export {};
+
+declare global {
+ interface Window {
+ area_click: (el: HTMLElement) => void;
+ banPlayer: (id: number) => void;
+ changeBlipVolume: () => void;
+ changeMusicVolume: (volume?: number) => void;
+ getIndexFromSelect: (select_box: string, value: string) => number;
+ kickPlayer: (id: number) => void;
+ onReplayGo: (_event: Event) => void;
+ opusCheck: (channel: HTMLAudioElement) => OnErrorEventHandlerNonNull;
+ pickEmotion: (emo: number) => void;
+ pickEvidence: (evidence: number) => void;
+ reloadTheme: () => void;
+ resizeChatbox: () => void;
+ setChatbox: (setstyle: string) => void;
+ showname_click: (_event: Event | null) => void;
+ switchPanTilt: () => Promise<void>;
+ updateActionCommands: (side: string) => void;
+ updateBackgroundPreview: () => void;
+ }
+}