Commit 1a4f141
Fix TypeScript global declarations: use var instead of let
TypeScript requires 'var' (not 'let') in 'declare global' blocks to properly
augment the global scope across all modules. This fixes build failures where
TypeScript couldn't find ReactOnRails on globalThis.
The previous commit accidentally reverted this change. Now properly using
'var' with the vars-on-top ESLint rule disabled.
Fixes errors:
- Property 'ReactOnRails' does not exist on type 'typeof globalThis'
- Property '__REACT_ON_RAILS_EVENT_HANDLERS_RAN_ONCE__' does not exist
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent a4b69e0 commit 1a4f141
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments