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
This commit is contained in:
Manuel Bahamóndez-Honores 2026-02-18 06:17:02 -03:00
parent 7fbf737631
commit af262cd21b
3 changed files with 7 additions and 80 deletions

View file

@ -58,7 +58,7 @@ class Advert {
return flags & 0x0F;
}
/** @returns {string | null} */
/** @returns {"NONE" | "CHAT" | "REPEATER" | "ROOM" | null} */
getTypeString() {
const type = this.getType();
if(type === Advert.ADV_TYPE_NONE) return "NONE";