add module (#141)

This commit is contained in:
Ben Lipsey
2023-10-30 08:23:42 +10:00
committed by GitHub
parent 7256454ea7
commit a8c45ccb32
4 changed files with 79 additions and 3 deletions
@@ -0,0 +1,17 @@
import { IsBoolean, IsInt, Length } from "class-validator";
import type { Protobuf } from "@meshtastic/meshtasticjs";
export class NeighborInfoValidation
implements
Omit<
Protobuf.ModuleConfig_NeighborInfoConfig,
keyof Protobuf.native.Message
>
{
@IsBoolean()
enabled: boolean;
@IsInt()
updateInterval: number;
}