NGU-Web/src
Zaldimmar 2428f4412a Type src/ against API and database shapes, fixing implicit anys
Adds .d.ts declarations beside the untyped JS modules imported from
TS (api.js, navConfig.js, adminSchema.js, adminNav.js, src/data/*),
with shapes taken from the server routes and migrations. get/post/
patch/del now return unknown unless the caller names the response.

Fixes found along the way:
- website/email/instagram are bare strings from splitLinks, not Link
  objects; OrganizationDetail's website and email pills rendered with
  no href or label and now link correctly.
- The chapter map falls back to FALLBACK_COLOR for a region with no
  colour instead of painting its tiles black.

Adds defineSection() so each page manifest entry's props are checked
against its own Component.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 04:13:46 -05:00
..
assets v1.2 - added react router 2026-09-25 02:34:15 -05:00
components Type src/ against API and database shapes, fixing implicit anys 2026-09-25 04:13:46 -05:00
data Type src/ against API and database shapes, fixing implicit anys 2026-09-25 04:13:46 -05:00
lib Type src/ against API and database shapes, fixing implicit anys 2026-09-25 04:13:46 -05:00
pages Type src/ against API and database shapes, fixing implicit anys 2026-09-25 04:13:46 -05:00
App.tsx v1.5 - history and timeline as well as many datastructure updates added, polished, fixes 2026-09-25 02:38:51 -05:00
App.tsx.save v1.0 - initial version 2026-09-25 02:20:07 -05:00
index.css v1.3 - added an sqlite db and built data structure 2026-09-25 02:35:46 -05:00
main.tsx v1.0 - initial version 2026-09-25 02:20:07 -05:00
navConfig.d.ts Type src/ against API and database shapes, fixing implicit anys 2026-09-25 04:13:46 -05:00
navConfig.js v1.5 - history and timeline as well as many datastructure updates added, polished, fixes 2026-09-25 02:38:51 -05:00
vite-env.d.ts v1.0 - initial version 2026-09-25 02:20:07 -05:00