mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
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:
parent
7fbf737631
commit
af262cd21b
3 changed files with 7 additions and 80 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue