Skip to content

Fix all TypeScript errors with Window interface declarations#297

Open
OmniTroid wants to merge 1 commit intomasterfrom
type-fixes
Open

Fix all TypeScript errors with Window interface declarations#297
OmniTroid wants to merge 1 commit intomasterfrom
type-fixes

Conversation

@OmniTroid
Copy link
Contributor

@OmniTroid OmniTroid commented Feb 27, 2026

Summary

  • Add webAO/global.d.ts to extend the global Window interface with 17 custom properties assigned at runtime (e.g. pickEmotion, resizeChatbox, area_click)
  • Resolves all 18 TS2339/TS2551 TypeScript compiler errors
  • Project now compiles cleanly with tsc --noEmit

Test plan

  • Run tsc --noEmit and verify zero errors
  • Run bun run build and verify successful build

🤖 Generated with Claude Code

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>
@OmniTroid
Copy link
Contributor Author

Cheap fix for Window type errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant