Skip to content

fix(frontend) :: remove any types from sqlpage.ts - #1515

Merged
81reap merged 1 commit into
mainfrom
81reap/ts-10-any-sqlpage
Sep 30, 2026
Merged

81reap merged 1 commit into
mainfrom
81reap/ts-10-any-sqlpage

Conversation

@81reap

@81reap 81reap commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator

sqlpage.ts now has no implicit anys.

Fixing this smoked out two bugs ::

  1. init_bootstrap_components read event.target without knowing what kind of element. We also tighting scope from Element to HTMLElement.
  2. normalize_hash passed undefined to decodeURIComponent, which stringifies it, so a toast with no data-toast-trigger opened at #undefined.

Stack created with GitHub Stacks CLI • Give Feedback 💬

@81reap
81reap added this pull request to stack #1512 September 30, 2026 00:38
@lovasoa
lovasoa force-pushed the 81reap/ts-10-any-sqlpage branch from 9d32905 to 94c4f70 Compare September 30, 2026 12:47
Base automatically changed from 81reap/ts-9-leaflet-types to main September 30, 2026 19:44
`sqlpage.ts` now has no implicit anys.

Fixing this smoked out two bugs ::
1. `init_bootstrap_components` read `event.target` without knowing what kind of element. We also tighting scope from `Element` to `HTMLElement`.
2. `normalize_hash` passed `undefined` to `decodeURIComponent`, which stringifies it, so a toast with no `data-toast-trigger` opened at `#undefined`.
@lovasoa
lovasoa force-pushed the 81reap/ts-10-any-sqlpage branch from 94c4f70 to 420c953 Compare September 30, 2026 19:44
@81reap
81reap merged commit 31f7022 into main Sep 30, 2026
52 checks passed
@81reap 81reap linked an issue Oct 1, 2026 that may be closed by this pull request
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.

Move to a better type system

2 participants