Commit graph

10 commits

Author SHA1 Message Date
Manuel Bahamóndez-Honores
af262cd21b Restore lost comments, use literal union for AdvertParsedData.type, remove partial event overloads
- Restore behavioral descriptions for sendCommandExportContact and getNeighbours
- Use string literal union for AdvertParsedData.type and Advert.getTypeString()
- Remove on/once/off overrides that provided minimal type-safety value
2026-02-18 06:17:02 -03:00
Manuel Bahamóndez-Honores
2d4cb35e51 Replace hand-written .d.ts with JSDoc + tsc auto-generation
- Delete hand-written index.d.ts that drifted from source
- Add JSDoc type annotations to all source files
- Create src/types.js with shared typedefs (SelfInfo, Contact,
  ContactMessage, ChannelInfo, RepeaterStats, etc.)
- Add tsconfig.json for declaration generation
- Add build:types script and prepublishOnly hook
- Add GitHub Actions CI workflow for type checking
- Use Uint8Array everywhere (no Buffer references)
- Add semantic type aliases (EpochSeconds, Milliseconds, MilliVolts)
- Add typed event overloads on Connection (on/once/off)
- All 11 PR #15 review comments addressed
2026-02-18 05:49:46 -03:00
liamcottle
f59b0f7ce4 parse feature flags if present in advert app data 2026-02-11 09:56:26 +13:00
Rastislav Vysoky
5c0f3b1b98
fix: ed25519 import bug 2025-10-06 22:07:24 +02:00
liamcottle
3edc69dacc fix parsing advert type 2025-04-22 12:21:24 +12:00
liamcottle
26888c8fcf parse extra packet types 2025-03-10 14:05:05 +13:00
liamcottle
5d94ba88ee parse packet types 2025-03-09 17:15:12 +13:00
liamcottle
74a784a253 tidy 2025-03-03 09:52:07 +13:00
liamcottle
363ec75b42 rename variable 2025-03-03 09:48:10 +13:00
liamcottle
b0e9a3d634 add advert parser and verifier 2025-03-03 09:46:03 +13:00